@kipicore/dbcore 1.1.19 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (564) hide show
  1. package/.sequelizerc +13 -0
  2. package/dist/.sequelizerc +13 -0
  3. package/dist/configs/aws.js +4 -4
  4. package/dist/configs/index.d.ts +2 -0
  5. package/dist/configs/index.js +18 -0
  6. package/dist/constants/app.js +13 -13
  7. package/dist/constants/index.d.ts +5 -0
  8. package/dist/constants/index.js +21 -0
  9. package/dist/constants/successMessages.d.ts +1 -1
  10. package/dist/helpers/index.d.ts +2 -0
  11. package/dist/helpers/index.js +18 -0
  12. package/dist/helpers/s3Uploader.d.ts +1 -1
  13. package/dist/helpers/s3Uploader.js +6 -6
  14. package/dist/helpers/utils.d.ts +3 -3
  15. package/dist/helpers/utils.js +4 -4
  16. package/dist/index.d.ts +17 -419
  17. package/dist/index.js +30 -755
  18. package/dist/interfaces/academicCalendarInterface.d.ts +2 -2
  19. package/dist/interfaces/accountHasReceiptDetailsInterface.d.ts +1 -1
  20. package/dist/interfaces/announcementInterface.d.ts +2 -2
  21. package/dist/interfaces/approvalRequestInterface.d.ts +2 -2
  22. package/dist/interfaces/attendanceInterface.d.ts +2 -2
  23. package/dist/interfaces/bankAccountDetailsInterface.d.ts +2 -2
  24. package/dist/interfaces/bannerInterface.d.ts +2 -2
  25. package/dist/interfaces/batchInterface.d.ts +2 -2
  26. package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -1
  27. package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -1
  28. package/dist/interfaces/blogInterface.d.ts +2 -2
  29. package/dist/interfaces/bookAssessmentDateInterface.d.ts +2 -2
  30. package/dist/interfaces/careerInterface.d.ts +2 -2
  31. package/dist/interfaces/categoriesInterface.d.ts +2 -2
  32. package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -1
  33. package/dist/interfaces/certificatesManagementInterface.d.ts +2 -2
  34. package/dist/interfaces/cityInterface.d.ts +1 -1
  35. package/dist/interfaces/classRoomInterface.d.ts +2 -2
  36. package/dist/interfaces/cloudStorageInterface.d.ts +2 -2
  37. package/dist/interfaces/coinPurchaseOfferInterface.d.ts +2 -2
  38. package/dist/interfaces/columnInterface.d.ts +2 -2
  39. package/dist/interfaces/contactFeedBackInterface.d.ts +2 -2
  40. package/dist/interfaces/countryInterface.d.ts +1 -1
  41. package/dist/interfaces/courseHasVisitorsInterface.d.ts +1 -1
  42. package/dist/interfaces/courseInterface.d.ts +2 -2
  43. package/dist/interfaces/dailyBookInterface.d.ts +1 -1
  44. package/dist/interfaces/dashboardManagementInterface.d.ts +2 -2
  45. package/dist/interfaces/driverInterface.d.ts +2 -2
  46. package/dist/interfaces/entityGroupInterface.d.ts +2 -2
  47. package/dist/interfaces/eventInterface.d.ts +2 -2
  48. package/dist/interfaces/examGroupInterface.d.ts +3 -3
  49. package/dist/interfaces/examHasAnswerSheetInterface.d.ts +2 -2
  50. package/dist/interfaces/examInterface.d.ts +2 -2
  51. package/dist/interfaces/facilityInterface.d.ts +2 -2
  52. package/dist/interfaces/featureActionInterface.d.ts +2 -2
  53. package/dist/interfaces/feeHistoryDetailsInterface.d.ts +2 -2
  54. package/dist/interfaces/feeHistoryInterface.d.ts +2 -2
  55. package/dist/interfaces/feeReminderInterface.d.ts +1 -1
  56. package/dist/interfaces/feeReminderSettingInterface.d.ts +2 -2
  57. package/dist/interfaces/feeReminderTypeInterface.d.ts +2 -2
  58. package/dist/interfaces/feeTypeHasTermsInterface.d.ts +2 -2
  59. package/dist/interfaces/feeTypeInterface.d.ts +2 -2
  60. package/dist/interfaces/feedBackInterface.d.ts +2 -2
  61. package/dist/interfaces/feesCollectionInterface.d.ts +2 -2
  62. package/dist/interfaces/fileStorageInterface.d.ts +2 -2
  63. package/dist/interfaces/floorManagementInterface.d.ts +2 -2
  64. package/dist/interfaces/generateIdCardInterface.d.ts +1 -1
  65. package/dist/interfaces/greetingsInterface.d.ts +2 -2
  66. package/dist/interfaces/holidayInterface.d.ts +2 -2
  67. package/dist/interfaces/homeworkInterface.d.ts +2 -2
  68. package/dist/interfaces/index.d.ts +137 -0
  69. package/dist/interfaces/index.js +153 -0
  70. package/dist/interfaces/informationSupportInterface.d.ts +2 -2
  71. package/dist/interfaces/inquiryInterface.d.ts +3 -3
  72. package/dist/interfaces/instituteEntityInterface.d.ts +2 -2
  73. package/dist/interfaces/instituteEntityTypeInterface.d.ts +2 -2
  74. package/dist/interfaces/instituteInterface.d.ts +2 -2
  75. package/dist/interfaces/instituteSubscriptionPlanInterface.d.ts +2 -2
  76. package/dist/interfaces/inventoryHistoryInterface.d.ts +2 -2
  77. package/dist/interfaces/inventoryInterface.d.ts +2 -2
  78. package/dist/interfaces/invoiceInterface.d.ts +2 -2
  79. package/dist/interfaces/jobApplyInterface.d.ts +2 -2
  80. package/dist/interfaces/lectureHistoryInterface.d.ts +2 -2
  81. package/dist/interfaces/lectureInterface.d.ts +2 -2
  82. package/dist/interfaces/masterLeaveInterface.d.ts +2 -2
  83. package/dist/interfaces/moduleFeatureInterface.d.ts +2 -2
  84. package/dist/interfaces/moduleInterface.d.ts +2 -2
  85. package/dist/interfaces/offersInterface.d.ts +2 -2
  86. package/dist/interfaces/paymentTermsInterface.d.ts +2 -2
  87. package/dist/interfaces/pdcChequeInterface.d.ts +2 -2
  88. package/dist/interfaces/pdcHistoryInterface.d.ts +2 -2
  89. package/dist/interfaces/photosGalleryInterface.d.ts +2 -2
  90. package/dist/interfaces/pincodeInterface.d.ts +1 -1
  91. package/dist/interfaces/plannerInterface.d.ts +2 -2
  92. package/dist/interfaces/productInterface.d.ts +2 -2
  93. package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -1
  94. package/dist/interfaces/replaceTeacherInterface.d.ts +2 -2
  95. package/dist/interfaces/roleInterface.d.ts +4 -4
  96. package/dist/interfaces/rulesRegulationInterface.d.ts +2 -2
  97. package/dist/interfaces/schoolFeeCollectionInterface.d.ts +1 -1
  98. package/dist/interfaces/schoolFeeInterface.d.ts +2 -2
  99. package/dist/interfaces/schoolOfferInterface.d.ts +2 -2
  100. package/dist/interfaces/sendNotificationInerface.d.ts +2 -2
  101. package/dist/interfaces/slotInterface.d.ts +2 -2
  102. package/dist/interfaces/stateInterface.d.ts +1 -1
  103. package/dist/interfaces/subCategoriesInterface.d.ts +2 -2
  104. package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
  105. package/dist/interfaces/subjectHasPayFeeHistoryInterface.d.ts +1 -1
  106. package/dist/interfaces/subjectIndexInterface.d.ts +2 -2
  107. package/dist/interfaces/subscriptionPlanInterface.d.ts +2 -2
  108. package/dist/interfaces/syllabusInterface.d.ts +2 -2
  109. package/dist/interfaces/taskManagementInterface.d.ts +2 -2
  110. package/dist/interfaces/testimonialInterface.d.ts +2 -2
  111. package/dist/interfaces/toDoInterface.d.ts +2 -2
  112. package/dist/interfaces/tokenInterface.d.ts +2 -2
  113. package/dist/interfaces/tripInterface.d.ts +2 -2
  114. package/dist/interfaces/typeManagementInterface.d.ts +2 -2
  115. package/dist/interfaces/uniqueNumberCounterInterface.d.ts +2 -2
  116. package/dist/interfaces/userBookAssessmentInterface.d.ts +2 -2
  117. package/dist/interfaces/userDetailsInterface.d.ts +2 -2
  118. package/dist/interfaces/userFeeTypeByAccountInterface.d.ts +2 -2
  119. package/dist/interfaces/userFeeTypeInterface.d.ts +2 -2
  120. package/dist/interfaces/userHasAnnouncementInterface.d.ts +2 -2
  121. package/dist/interfaces/userHasBatchInterface.d.ts +1 -1
  122. package/dist/interfaces/userHasCourseInterface.d.ts +2 -2
  123. package/dist/interfaces/userHasDeviceInterface.d.ts +2 -2
  124. package/dist/interfaces/userHasFeeTermsInterface.d.ts +2 -2
  125. package/dist/interfaces/userHasFileInterface.d.ts +2 -2
  126. package/dist/interfaces/userHasHomeWorkInterface.d.ts +2 -2
  127. package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +2 -2
  128. package/dist/interfaces/userHasInventoryInterface.d.ts +2 -2
  129. package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +2 -2
  130. package/dist/interfaces/userHasLeaveInterface.d.ts +2 -2
  131. package/dist/interfaces/userHasOfferInterface.d.ts +1 -1
  132. package/dist/interfaces/userHasParentInterface.d.ts +2 -2
  133. package/dist/interfaces/userHasRoleInterface.d.ts +2 -2
  134. package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -1
  135. package/dist/interfaces/userHasStorageInterface.d.ts +2 -2
  136. package/dist/interfaces/userHasSubjectFeeInterface.d.ts +1 -1
  137. package/dist/interfaces/userInstituteMetaInterface.d.ts +2 -2
  138. package/dist/interfaces/userInterface.d.ts +2 -2
  139. package/dist/interfaces/userLeaveRequestInterface.d.ts +2 -2
  140. package/dist/interfaces/userMetaInterface.d.ts +2 -2
  141. package/dist/interfaces/userPayoutDetailsInterface.d.ts +2 -2
  142. package/dist/interfaces/userPayoutHistoryInterface.d.ts +2 -2
  143. package/dist/interfaces/userPayoutInterface.d.ts +2 -2
  144. package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +2 -2
  145. package/dist/interfaces/userRequiredStepsInterface.d.ts +2 -2
  146. package/dist/interfaces/userSchoolMetaInterface.d.ts +2 -2
  147. package/dist/interfaces/vehicleInterface.d.ts +2 -2
  148. package/dist/interfaces/vendorManagementInterface.d.ts +2 -2
  149. package/dist/interfaces/videoAnalystInterface.d.ts +1 -1
  150. package/dist/interfaces/walletHistoryInterface.d.ts +2 -2
  151. package/dist/interfaces/walletInterface.d.ts +2 -2
  152. package/dist/interfaces/walletTransactionInterface.d.ts +3 -3
  153. package/dist/interfaces/workingDayInterface.d.ts +2 -2
  154. package/dist/interfaces/workingShiftInterface.d.ts +2 -2
  155. package/dist/models/mongodb/approvalRequestModel.d.ts +1 -1
  156. package/dist/models/mongodb/approvalRequestModel.js +4 -4
  157. package/dist/models/mongodb/attendanceModel.d.ts +1 -1
  158. package/dist/models/mongodb/attendanceModel.js +23 -23
  159. package/dist/models/mongodb/blogModel.d.ts +1 -1
  160. package/dist/models/mongodb/blogModel.js +3 -3
  161. package/dist/models/mongodb/careerModel.d.ts +1 -1
  162. package/dist/models/mongodb/careerModel.js +3 -3
  163. package/dist/models/mongodb/certificatesHistoryModel.d.ts +1 -1
  164. package/dist/models/mongodb/certificatesManagementModel.d.ts +1 -1
  165. package/dist/models/mongodb/certificatesManagementModel.js +3 -3
  166. package/dist/models/mongodb/columnModel.d.ts +1 -1
  167. package/dist/models/mongodb/columnModel.js +5 -5
  168. package/dist/models/mongodb/dailyBookModel.d.ts +1 -1
  169. package/dist/models/mongodb/dashboardManagementModel.d.ts +1 -1
  170. package/dist/models/mongodb/dashboardManagementModel.js +6 -6
  171. package/dist/models/mongodb/eventModel.d.ts +1 -1
  172. package/dist/models/mongodb/eventModel.js +15 -15
  173. package/dist/models/mongodb/examGroupModel.d.ts +1 -1
  174. package/dist/models/mongodb/examGroupModel.js +18 -18
  175. package/dist/models/mongodb/examHasAnswerSheetModel.d.ts +1 -1
  176. package/dist/models/mongodb/examHasAnswerSheetModel.js +12 -12
  177. package/dist/models/mongodb/examModel.d.ts +1 -1
  178. package/dist/models/mongodb/examModel.js +28 -28
  179. package/dist/models/mongodb/feeReminderTypeModel.d.ts +1 -1
  180. package/dist/models/mongodb/feeReminderTypeModel.js +3 -3
  181. package/dist/models/mongodb/feedBackModel.d.ts +1 -1
  182. package/dist/models/mongodb/feedBackModel.js +3 -3
  183. package/dist/models/mongodb/generateIdCardModel.d.ts +1 -1
  184. package/dist/models/mongodb/holidayModel.d.ts +1 -1
  185. package/dist/models/mongodb/holidayModel.js +15 -15
  186. package/dist/models/mongodb/index.d.ts +36 -2
  187. package/dist/models/mongodb/index.js +60 -10
  188. package/dist/models/mongodb/informationSupportModel.d.ts +1 -1
  189. package/dist/models/mongodb/informationSupportModel.js +2 -2
  190. package/dist/models/mongodb/inquiryModel.d.ts +1 -1
  191. package/dist/models/mongodb/inquiryModel.js +18 -18
  192. package/dist/models/mongodb/invoiceModel.d.ts +1 -1
  193. package/dist/models/mongodb/invoiceModel.js +7 -7
  194. package/dist/models/mongodb/jobApplyModel.d.ts +1 -1
  195. package/dist/models/mongodb/jobApplyModel.js +7 -7
  196. package/dist/models/mongodb/photosGalleryModel.d.ts +1 -1
  197. package/dist/models/mongodb/photosGalleryModel.js +6 -6
  198. package/dist/models/mongodb/plannerModel.d.ts +1 -1
  199. package/dist/models/mongodb/plannerModel.js +3 -3
  200. package/dist/models/mongodb/replaceTeacherModel.d.ts +1 -1
  201. package/dist/models/mongodb/replaceTeacherModel.js +6 -6
  202. package/dist/models/mongodb/schoolFeeModel.d.ts +1 -1
  203. package/dist/models/mongodb/schoolFeeModel.js +12 -12
  204. package/dist/models/mongodb/subjectIndexModel.d.ts +1 -1
  205. package/dist/models/mongodb/subjectIndexModel.js +88 -88
  206. package/dist/models/mongodb/subscriptionPlanModel.d.ts +1 -1
  207. package/dist/models/mongodb/subscriptionPlanModel.js +6 -6
  208. package/dist/models/mongodb/taskManagementModel.d.ts +1 -1
  209. package/dist/models/mongodb/taskManagementModel.js +10 -10
  210. package/dist/models/mongodb/uniqueNumberCounterModel.d.ts +1 -1
  211. package/dist/models/mongodb/uniqueNumberCounterModel.js +3 -3
  212. package/dist/models/mongodb/userDetailsModel.d.ts +1 -1
  213. package/dist/models/mongodb/userDetailsModel.js +19 -19
  214. package/dist/models/mongodb/userInstituteMetaModel.d.ts +1 -1
  215. package/dist/models/mongodb/userInstituteMetaModel.js +14 -14
  216. package/dist/models/mongodb/userSchoolMetaModel.d.ts +1 -1
  217. package/dist/models/mongodb/userSchoolMetaModel.js +30 -30
  218. package/dist/models/mongodb/videoAnalystModel.d.ts +1 -1
  219. package/dist/models/mongodb/walletTransactionModel.d.ts +1 -1
  220. package/dist/models/mongodb/walletTransactionModel.js +12 -12
  221. package/dist/models/psql/SubCategoriesModel.d.ts +3 -3
  222. package/dist/models/psql/SubCategoriesModel.js +14 -14
  223. package/dist/models/psql/academicCalendarModel.d.ts +3 -3
  224. package/dist/models/psql/academicCalendarModel.js +13 -13
  225. package/dist/models/psql/accountHasReceiptDetailsModel.d.ts +2 -2
  226. package/dist/models/psql/accountHasReceiptDetailsModel.js +15 -15
  227. package/dist/models/psql/announcementModel.d.ts +3 -3
  228. package/dist/models/psql/announcementModel.js +30 -30
  229. package/dist/models/psql/areaModel.d.ts +2 -2
  230. package/dist/models/psql/areaModel.js +5 -5
  231. package/dist/models/psql/bankAccountDetailsModel.d.ts +3 -3
  232. package/dist/models/psql/bankAccountDetailsModel.js +16 -16
  233. package/dist/models/psql/bannerModel.d.ts +3 -3
  234. package/dist/models/psql/bannerModel.js +20 -20
  235. package/dist/models/psql/batchModel.d.ts +3 -3
  236. package/dist/models/psql/batchModel.js +27 -27
  237. package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +2 -2
  238. package/dist/models/psql/batchSubjectBookAssessmentModel.js +20 -20
  239. package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +2 -2
  240. package/dist/models/psql/batchSubjectProjectAssessmentModel.js +17 -17
  241. package/dist/models/psql/bookAssessmentDateModel.d.ts +3 -3
  242. package/dist/models/psql/bookAssessmentDateModel.js +12 -12
  243. package/dist/models/psql/categoriesModel.d.ts +3 -3
  244. package/dist/models/psql/categoriesModel.js +11 -11
  245. package/dist/models/psql/cityModel.d.ts +1 -1
  246. package/dist/models/psql/cityModel.js +8 -8
  247. package/dist/models/psql/classRoomModel.d.ts +3 -3
  248. package/dist/models/psql/classRoomModel.js +18 -18
  249. package/dist/models/psql/cloudStorageModel.d.ts +3 -3
  250. package/dist/models/psql/cloudStorageModel.js +10 -10
  251. package/dist/models/psql/coinPurchaseOfferModel.d.ts +3 -3
  252. package/dist/models/psql/coinPurchaseOfferModel.js +10 -10
  253. package/dist/models/psql/contactFeedBackModel.d.ts +3 -3
  254. package/dist/models/psql/contactFeedBackModel.js +16 -16
  255. package/dist/models/psql/countryModel.d.ts +1 -1
  256. package/dist/models/psql/countryModel.js +2 -2
  257. package/dist/models/psql/courseHasVisitorsModel.d.ts +2 -2
  258. package/dist/models/psql/courseHasVisitorsModel.js +9 -9
  259. package/dist/models/psql/courseModel.d.ts +3 -3
  260. package/dist/models/psql/courseModel.js +18 -18
  261. package/dist/models/psql/driverModel.d.ts +3 -3
  262. package/dist/models/psql/driverModel.js +25 -25
  263. package/dist/models/psql/entityGroupModel.d.ts +3 -3
  264. package/dist/models/psql/entityGroupModel.js +12 -12
  265. package/dist/models/psql/facilityModel.d.ts +3 -3
  266. package/dist/models/psql/facilityModel.js +20 -20
  267. package/dist/models/psql/featureActionModel.d.ts +3 -3
  268. package/dist/models/psql/featureActionModel.js +10 -10
  269. package/dist/models/psql/feeHistoryDetailsModel.d.ts +3 -3
  270. package/dist/models/psql/feeHistoryDetailsModel.js +23 -23
  271. package/dist/models/psql/feeHistoryModel.d.ts +3 -3
  272. package/dist/models/psql/feeHistoryModel.js +49 -49
  273. package/dist/models/psql/feeReminderModel.d.ts +2 -2
  274. package/dist/models/psql/feeReminderModel.js +41 -41
  275. package/dist/models/psql/feeReminderSettingModel.d.ts +3 -3
  276. package/dist/models/psql/feeReminderSettingModel.js +14 -14
  277. package/dist/models/psql/feeTypeHasTermsModel.d.ts +3 -3
  278. package/dist/models/psql/feeTypeHasTermsModel.js +14 -14
  279. package/dist/models/psql/feeTypeModel.d.ts +3 -3
  280. package/dist/models/psql/feeTypeModel.js +24 -24
  281. package/dist/models/psql/feesCollectionModel.d.ts +3 -3
  282. package/dist/models/psql/feesCollectionModel.js +30 -30
  283. package/dist/models/psql/fileStorageModel.d.ts +2 -2
  284. package/dist/models/psql/fileStorageModel.js +8 -8
  285. package/dist/models/psql/floorManagementModel.d.ts +3 -3
  286. package/dist/models/psql/floorManagementModel.js +11 -11
  287. package/dist/models/psql/greetingsModel.d.ts +3 -3
  288. package/dist/models/psql/greetingsModel.js +17 -17
  289. package/dist/models/psql/homeWorkModel.d.ts +3 -3
  290. package/dist/models/psql/homeWorkModel.js +18 -18
  291. package/dist/models/psql/index.js +2 -2
  292. package/dist/models/psql/instituteEntityModel.d.ts +3 -3
  293. package/dist/models/psql/instituteEntityModel.js +14 -14
  294. package/dist/models/psql/instituteEntityTypeModel.d.ts +3 -3
  295. package/dist/models/psql/instituteEntityTypeModel.js +10 -10
  296. package/dist/models/psql/instituteModel.d.ts +3 -3
  297. package/dist/models/psql/instituteModel.js +30 -30
  298. package/dist/models/psql/instituteSubscriptionPlanModel.d.ts +3 -3
  299. package/dist/models/psql/instituteSubscriptionPlanModel.js +16 -16
  300. package/dist/models/psql/inventoryHistoryModel.d.ts +3 -3
  301. package/dist/models/psql/inventoryHistoryModel.js +20 -20
  302. package/dist/models/psql/inventoryModel.d.ts +3 -3
  303. package/dist/models/psql/inventoryModel.js +16 -16
  304. package/dist/models/psql/lectureHistoryModel.d.ts +3 -3
  305. package/dist/models/psql/lectureHistoryModel.js +33 -33
  306. package/dist/models/psql/lectureModel.d.ts +3 -3
  307. package/dist/models/psql/lectureModel.js +74 -74
  308. package/dist/models/psql/masterLeaveModel.d.ts +3 -3
  309. package/dist/models/psql/masterLeaveModel.js +23 -23
  310. package/dist/models/psql/modelIndex.d.ts +101 -0
  311. package/dist/models/psql/modelIndex.js +117 -0
  312. package/dist/models/psql/moduleFeatureModel.d.ts +3 -3
  313. package/dist/models/psql/moduleFeatureModel.js +12 -12
  314. package/dist/models/psql/moduleModel.d.ts +3 -3
  315. package/dist/models/psql/moduleModel.js +14 -14
  316. package/dist/models/psql/offerModel.d.ts +3 -3
  317. package/dist/models/psql/offerModel.js +16 -16
  318. package/dist/models/psql/paymentTermsModel.d.ts +2 -2
  319. package/dist/models/psql/paymentTermsModel.js +15 -15
  320. package/dist/models/psql/pdcChequeModel.d.ts +3 -3
  321. package/dist/models/psql/pdcChequeModel.js +19 -19
  322. package/dist/models/psql/pdcHistoryModel.d.ts +3 -3
  323. package/dist/models/psql/pdcHistoryModel.js +22 -22
  324. package/dist/models/psql/pincodeModel.d.ts +1 -1
  325. package/dist/models/psql/pincodeModel.js +8 -8
  326. package/dist/models/psql/productModel.d.ts +3 -3
  327. package/dist/models/psql/productModel.js +17 -17
  328. package/dist/models/psql/projectAssessmentOptionModel.d.ts +2 -2
  329. package/dist/models/psql/projectAssessmentOptionModel.js +9 -9
  330. package/dist/models/psql/roleModel.d.ts +3 -3
  331. package/dist/models/psql/roleModel.js +9 -9
  332. package/dist/models/psql/rulesRegulationModel.d.ts +3 -3
  333. package/dist/models/psql/rulesRegulationModel.js +8 -8
  334. package/dist/models/psql/schoolFeeCollectionModel.d.ts +2 -2
  335. package/dist/models/psql/schoolFeeCollectionModel.js +14 -14
  336. package/dist/models/psql/schoolOfferModel.d.ts +3 -3
  337. package/dist/models/psql/schoolOfferModel.js +18 -18
  338. package/dist/models/psql/sendNotificationModel.d.ts +3 -3
  339. package/dist/models/psql/sendNotificationModel.js +14 -14
  340. package/dist/models/psql/slotModel.d.ts +3 -3
  341. package/dist/models/psql/slotModel.js +14 -14
  342. package/dist/models/psql/stateModel.d.ts +1 -1
  343. package/dist/models/psql/stateModel.js +5 -5
  344. package/dist/models/psql/subjectHasFeeModel.d.ts +2 -2
  345. package/dist/models/psql/subjectHasFeeModel.js +12 -12
  346. package/dist/models/psql/subjectHasPayFeeHistoryModel.d.ts +2 -2
  347. package/dist/models/psql/subjectHasPayFeeHistoryModel.js +17 -17
  348. package/dist/models/psql/syllabusModel.d.ts +3 -3
  349. package/dist/models/psql/syllabusModel.js +17 -17
  350. package/dist/models/psql/testimonialModel.d.ts +3 -3
  351. package/dist/models/psql/testimonialModel.js +31 -31
  352. package/dist/models/psql/toDoModel.d.ts +3 -3
  353. package/dist/models/psql/toDoModel.js +19 -19
  354. package/dist/models/psql/tokenModel.d.ts +2 -2
  355. package/dist/models/psql/tokenModel.js +2 -2
  356. package/dist/models/psql/tripModel.d.ts +3 -3
  357. package/dist/models/psql/tripModel.js +16 -16
  358. package/dist/models/psql/typeManagementModel.d.ts +3 -3
  359. package/dist/models/psql/typeManagementModel.js +16 -16
  360. package/dist/models/psql/userBookAssessmentModel.d.ts +3 -3
  361. package/dist/models/psql/userBookAssessmentModel.js +20 -20
  362. package/dist/models/psql/userFeeTypeByAccountModel.d.ts +2 -2
  363. package/dist/models/psql/userFeeTypeByAccountModel.js +22 -22
  364. package/dist/models/psql/userFeeTypeModel.d.ts +3 -3
  365. package/dist/models/psql/userFeeTypeModel.js +23 -23
  366. package/dist/models/psql/userHasAnnouncementModel.d.ts +3 -3
  367. package/dist/models/psql/userHasAnnouncementModel.js +17 -17
  368. package/dist/models/psql/userHasBatchModel.d.ts +2 -2
  369. package/dist/models/psql/userHasBatchModel.js +11 -11
  370. package/dist/models/psql/userHasCourseModel.d.ts +3 -3
  371. package/dist/models/psql/userHasCourseModel.js +17 -17
  372. package/dist/models/psql/userHasDeviceModel.d.ts +3 -3
  373. package/dist/models/psql/userHasDeviceModel.js +11 -11
  374. package/dist/models/psql/userHasFeeTermsModel.d.ts +3 -3
  375. package/dist/models/psql/userHasFeeTermsModel.js +23 -23
  376. package/dist/models/psql/userHasFileModel.d.ts +2 -2
  377. package/dist/models/psql/userHasFileModel.js +15 -15
  378. package/dist/models/psql/userHasHomeWorkModel.d.ts +3 -3
  379. package/dist/models/psql/userHasHomeWorkModel.js +20 -20
  380. package/dist/models/psql/userHasInventoryHistoryModel.d.ts +3 -3
  381. package/dist/models/psql/userHasInventoryHistoryModel.js +16 -16
  382. package/dist/models/psql/userHasInventoryModel.d.ts +3 -3
  383. package/dist/models/psql/userHasInventoryModel.js +19 -19
  384. package/dist/models/psql/userHasLeaveHistoryModel.d.ts +3 -3
  385. package/dist/models/psql/userHasLeaveHistoryModel.js +20 -20
  386. package/dist/models/psql/userHasLeaveModel.d.ts +3 -3
  387. package/dist/models/psql/userHasLeaveModel.js +17 -17
  388. package/dist/models/psql/userHasOfferModel.d.ts +2 -2
  389. package/dist/models/psql/userHasOfferModel.js +20 -20
  390. package/dist/models/psql/userHasParentModel.d.ts +3 -3
  391. package/dist/models/psql/userHasParentModel.js +12 -12
  392. package/dist/models/psql/userHasRoleModel.d.ts +3 -3
  393. package/dist/models/psql/userHasRoleModel.js +13 -13
  394. package/dist/models/psql/userHasRollNumberModel.d.ts +2 -2
  395. package/dist/models/psql/userHasRollNumberModel.js +14 -14
  396. package/dist/models/psql/userHasStorageModel.d.ts +3 -3
  397. package/dist/models/psql/userHasStorageModel.js +11 -11
  398. package/dist/models/psql/userHasSubjectFeeModel.d.ts +2 -2
  399. package/dist/models/psql/userHasSubjectFeeModel.js +12 -12
  400. package/dist/models/psql/userLeaveRequestModel.d.ts +3 -3
  401. package/dist/models/psql/userLeaveRequestModel.js +23 -23
  402. package/dist/models/psql/userModel.d.ts +3 -3
  403. package/dist/models/psql/userModel.js +43 -43
  404. package/dist/models/psql/userPayoutDetailsModel.d.ts +3 -3
  405. package/dist/models/psql/userPayoutDetailsModel.js +22 -22
  406. package/dist/models/psql/userPayoutHistoryModel.d.ts +3 -3
  407. package/dist/models/psql/userPayoutHistoryModel.js +17 -17
  408. package/dist/models/psql/userPayoutModel.d.ts +3 -3
  409. package/dist/models/psql/userPayoutModel.js +31 -31
  410. package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +3 -3
  411. package/dist/models/psql/userProjectAssessmentOptionModel.js +17 -17
  412. package/dist/models/psql/userRequiredStepsModel.d.ts +2 -2
  413. package/dist/models/psql/userRequiredStepsModel.js +8 -8
  414. package/dist/models/psql/vehicleModel.d.ts +3 -3
  415. package/dist/models/psql/vehicleModel.js +14 -14
  416. package/dist/models/psql/vendorManagementModel.d.ts +3 -3
  417. package/dist/models/psql/vendorManagementModel.js +20 -20
  418. package/dist/models/psql/walletHistoryModel.d.ts +3 -3
  419. package/dist/models/psql/walletHistoryModel.js +13 -13
  420. package/dist/models/psql/walletModel.d.ts +3 -3
  421. package/dist/models/psql/walletModel.js +10 -10
  422. package/dist/models/psql/workingDayModel.d.ts +3 -3
  423. package/dist/models/psql/workingDayModel.js +8 -8
  424. package/dist/models/psql/workingShiftModel.d.ts +3 -3
  425. package/dist/models/psql/workingShiftModel.js +17 -17
  426. package/dist/services/Concrete/mongooseCommonService.d.ts +2 -2
  427. package/dist/services/Concrete/mongooseCommonService.js +4 -4
  428. package/dist/services/Concrete/sequelizeCommonService.d.ts +2 -2
  429. package/dist/services/Concrete/sequelizeCommonService.js +5 -5
  430. package/dist/services/Contracts/IMongooseCommonService.d.ts +1 -1
  431. package/dist/services/Contracts/ISequelizeCommonService.d.ts +1 -1
  432. package/dist/types/academicCalendarType.d.ts +1 -1
  433. package/dist/types/accountHasReceiptDetailsType.d.ts +2 -2
  434. package/dist/types/announcementType.d.ts +1 -1
  435. package/dist/types/approveRequestType.d.ts +1 -1
  436. package/dist/types/areaType.d.ts +1 -1
  437. package/dist/types/attendanceType.d.ts +1 -1
  438. package/dist/types/bankAccountDetailsType.d.ts +1 -1
  439. package/dist/types/bannerType.d.ts +2 -2
  440. package/dist/types/batchSubjectBookAssessmentType.d.ts +2 -2
  441. package/dist/types/batchSubjectProjectAssessmentType.d.ts +2 -2
  442. package/dist/types/batchType.d.ts +2 -2
  443. package/dist/types/blogType.d.ts +1 -1
  444. package/dist/types/bookAssessmentDateType.d.ts +2 -2
  445. package/dist/types/careerType.d.ts +1 -1
  446. package/dist/types/categoriesType.d.ts +1 -1
  447. package/dist/types/certificatesHistoryType.d.ts +1 -1
  448. package/dist/types/certificatesManagementType.d.ts +1 -1
  449. package/dist/types/classRoomType.d.ts +1 -1
  450. package/dist/types/cloudStorageType.d.ts +1 -1
  451. package/dist/types/coinPurchaseOfferType.d.ts +1 -1
  452. package/dist/types/contactFeedBackType.d.ts +1 -1
  453. package/dist/types/courseHasVisitorsType.d.ts +1 -1
  454. package/dist/types/courseType.d.ts +1 -1
  455. package/dist/types/dailyBookType.d.ts +1 -1
  456. package/dist/types/dashboardManagementType.d.ts +1 -1
  457. package/dist/types/driverType.d.ts +2 -2
  458. package/dist/types/entityGroupType.d.ts +1 -1
  459. package/dist/types/eventType.d.ts +1 -1
  460. package/dist/types/examGroupType.d.ts +1 -1
  461. package/dist/types/examHasAnswerSheetType.d.ts +1 -1
  462. package/dist/types/examType.d.ts +2 -2
  463. package/dist/types/facilityType.d.ts +1 -1
  464. package/dist/types/featureActionType.d.ts +1 -1
  465. package/dist/types/feeHistoryDetailsType.d.ts +2 -2
  466. package/dist/types/feeHistoryType.d.ts +3 -3
  467. package/dist/types/feeReminderSettingType.d.ts +1 -1
  468. package/dist/types/feeReminderType.d.ts +1 -1
  469. package/dist/types/feeReminderTypeType.d.ts +1 -1
  470. package/dist/types/feeTypeHasTermsType.d.ts +1 -1
  471. package/dist/types/feeTypeType.d.ts +1 -1
  472. package/dist/types/feedBackType.d.ts +1 -1
  473. package/dist/types/feesCollectionType.d.ts +1 -1
  474. package/dist/types/fileStorageType.d.ts +1 -1
  475. package/dist/types/floormanagementType.d.ts +1 -1
  476. package/dist/types/generateIdCardType.d.ts +1 -1
  477. package/dist/types/greetingsType.d.ts +2 -2
  478. package/dist/types/holidayType.d.ts +1 -1
  479. package/dist/types/homeWorkType.d.ts +1 -1
  480. package/dist/types/index.d.ts +129 -0
  481. package/dist/types/index.js +145 -0
  482. package/dist/types/informationSupportType.d.ts +1 -1
  483. package/dist/types/inquiryType.d.ts +1 -1
  484. package/dist/types/instituteEntityType.d.ts +1 -1
  485. package/dist/types/instituteEntityTypeType.d.ts +1 -1
  486. package/dist/types/instituteSubscriptionPlanType.d.ts +1 -1
  487. package/dist/types/instituteType.d.ts +1 -1
  488. package/dist/types/inventoryHistoryType.d.ts +1 -1
  489. package/dist/types/inventoryType.d.ts +1 -1
  490. package/dist/types/jobApply.d.ts +1 -1
  491. package/dist/types/lectureHistoryType.d.ts +2 -2
  492. package/dist/types/lectureType.d.ts +2 -2
  493. package/dist/types/masterLeaveType.d.ts +1 -1
  494. package/dist/types/moduleFeatureType.d.ts +1 -1
  495. package/dist/types/moduleType.d.ts +1 -1
  496. package/dist/types/offerType.d.ts +1 -1
  497. package/dist/types/paymentTermsType.d.ts +1 -1
  498. package/dist/types/pdcChequeType.d.ts +2 -2
  499. package/dist/types/pdcHistoryType.d.ts +1 -1
  500. package/dist/types/photosGalleryType.d.ts +1 -1
  501. package/dist/types/plannerType.d.ts +1 -1
  502. package/dist/types/productType.d.ts +1 -1
  503. package/dist/types/projectAssessmentOptionType.d.ts +2 -2
  504. package/dist/types/roleType.d.ts +4 -4
  505. package/dist/types/rulesRegulationType.d.ts +1 -1
  506. package/dist/types/schoolFeeCollectionType.d.ts +1 -1
  507. package/dist/types/schoolFeeType.d.ts +1 -1
  508. package/dist/types/schoolOfferType.d.ts +1 -1
  509. package/dist/types/sendNotificationType.d.ts +1 -1
  510. package/dist/types/slotType.d.ts +1 -1
  511. package/dist/types/subCategoryType.d.ts +1 -1
  512. package/dist/types/subjectHasFeeType.d.ts +1 -1
  513. package/dist/types/subjectHasPayFeeHistoryType.d.ts +1 -1
  514. package/dist/types/subjectIndexType.d.ts +2 -2
  515. package/dist/types/subscriptionPlanType.d.ts +1 -1
  516. package/dist/types/syllabusType.d.ts +2 -2
  517. package/dist/types/taskManagementType.d.ts +1 -1
  518. package/dist/types/testimonialType.d.ts +2 -2
  519. package/dist/types/toDoType.d.ts +2 -2
  520. package/dist/types/tripType.d.ts +1 -1
  521. package/dist/types/typeManagementType.d.ts +1 -1
  522. package/dist/types/uniqueNumberCounterType.d.ts +1 -1
  523. package/dist/types/userBookAssessmentType.d.ts +2 -2
  524. package/dist/types/userDetailsType.d.ts +1 -1
  525. package/dist/types/userFeeTypeByAccountType.d.ts +1 -1
  526. package/dist/types/userFeeTypeType.d.ts +1 -1
  527. package/dist/types/userHasAnnouncementType.d.ts +1 -1
  528. package/dist/types/userHasBatchType.d.ts +3 -3
  529. package/dist/types/userHasCourseType.d.ts +1 -1
  530. package/dist/types/userHasDeviceType.d.ts +1 -1
  531. package/dist/types/userHasFeeTermsType.d.ts +1 -1
  532. package/dist/types/userHasFileType.d.ts +1 -1
  533. package/dist/types/userHasHomeWorkType.d.ts +1 -1
  534. package/dist/types/userHasInventoryHistoryType.d.ts +1 -1
  535. package/dist/types/userHasInventoryType.d.ts +1 -1
  536. package/dist/types/userHasLeaveHistoryType.d.ts +1 -1
  537. package/dist/types/userHasLeaveType.d.ts +1 -1
  538. package/dist/types/userHasOffer.d.ts +1 -1
  539. package/dist/types/userHasParentType.d.ts +1 -1
  540. package/dist/types/userHasRoleType.d.ts +1 -1
  541. package/dist/types/userHasRollNumberType.d.ts +1 -1
  542. package/dist/types/userHasStorageType.d.ts +1 -1
  543. package/dist/types/userHasSubjectFeeType.d.ts +1 -1
  544. package/dist/types/userInstituteMetaType.d.ts +1 -1
  545. package/dist/types/userLeaveRequestType.d.ts +1 -1
  546. package/dist/types/userMetaType.d.ts +2 -2
  547. package/dist/types/userPayoutDetailsType.d.ts +1 -1
  548. package/dist/types/userPayoutHistoryType.d.ts +1 -1
  549. package/dist/types/userPayoutType.d.ts +2 -2
  550. package/dist/types/userProjectAssessmentOptionType.d.ts +2 -2
  551. package/dist/types/userRequiredStepsType.d.ts +1 -1
  552. package/dist/types/userSchoolMetaType.d.ts +1 -1
  553. package/dist/types/userType.d.ts +3 -3
  554. package/dist/types/vehicleType.d.ts +1 -1
  555. package/dist/types/vendorType.d.ts +1 -1
  556. package/dist/types/videoAnalystType.d.ts +1 -1
  557. package/dist/types/walletHistoryType.d.ts +1 -1
  558. package/dist/types/walletTransactionType.d.ts +1 -1
  559. package/dist/types/walletType.d.ts +1 -1
  560. package/dist/types/workingDayType.d.ts +1 -1
  561. package/dist/types/workingShiftType.d.ts +1 -1
  562. package/package.json +5 -4
  563. /package/dist/interfaces/{commanInterface.d.ts → commonInterface.d.ts} +0 -0
  564. /package/dist/interfaces/{commanInterface.js → commonInterface.js} +0 -0
@@ -4,14 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const app_js_1 = require("../../constants/app.js");
9
- const userModel_js_1 = __importDefault(require("./userModel.js"));
10
- const instituteModel_js_1 = __importDefault(require("./instituteModel.js"));
11
- const typeManagementModel_js_1 = __importDefault(require("./typeManagementModel.js"));
12
- const workingShiftModel_js_1 = __importDefault(require("./workingShiftModel.js"));
13
- const academicCalendarModel_js_1 = __importDefault(require("./academicCalendarModel.js"));
14
- const slotModel_js_1 = __importDefault(require("./slotModel.js"));
7
+ const index_1 = require("./index");
8
+ const app_1 = require("../../constants/app");
9
+ const userModel_1 = __importDefault(require("./userModel"));
10
+ const instituteModel_1 = __importDefault(require("./instituteModel"));
11
+ const typeManagementModel_1 = __importDefault(require("./typeManagementModel"));
12
+ const workingShiftModel_1 = __importDefault(require("./workingShiftModel"));
13
+ const academicCalendarModel_1 = __importDefault(require("./academicCalendarModel"));
14
+ const slotModel_1 = __importDefault(require("./slotModel"));
15
15
  const sequelize_2 = require("sequelize");
16
16
  class BatchModel extends sequelize_1.Model {
17
17
  }
@@ -74,13 +74,13 @@ BatchModel.init({
74
74
  status: {
75
75
  type: sequelize_1.DataTypes.STRING(30),
76
76
  allowNull: false,
77
- defaultValue: app_js_1.COMMAN_STATUS.ACTIVE,
77
+ defaultValue: app_1.COMMAN_STATUS.ACTIVE,
78
78
  },
79
79
  plannerSyncStatus: {
80
80
  type: sequelize_1.DataTypes.STRING,
81
81
  field: 'planner_sync_status',
82
82
  allowNull: true,
83
- defaultValue: app_js_1.PLANNER_SYNC_STATUS.PENDING,
83
+ defaultValue: app_1.PLANNER_SYNC_STATUS.PENDING,
84
84
  },
85
85
  academicCalendarId: {
86
86
  type: sequelize_1.DataTypes.UUID,
@@ -92,9 +92,9 @@ BatchModel.init({
92
92
  modelName: 'BatchModel',
93
93
  tableName: 'batches',
94
94
  timestamps: true,
95
- sequelize: index_js_1.sequelize,
95
+ sequelize: index_1.sequelize,
96
96
  });
97
- BatchModel.belongsTo(userModel_js_1.default, {
97
+ BatchModel.belongsTo(userModel_1.default, {
98
98
  foreignKey: {
99
99
  name: 'createdBy',
100
100
  allowNull: true,
@@ -102,7 +102,7 @@ BatchModel.belongsTo(userModel_js_1.default, {
102
102
  },
103
103
  as: 'createdByUser',
104
104
  });
105
- BatchModel.belongsTo(userModel_js_1.default, {
105
+ BatchModel.belongsTo(userModel_1.default, {
106
106
  foreignKey: {
107
107
  name: 'updatedBy',
108
108
  allowNull: true,
@@ -110,7 +110,7 @@ BatchModel.belongsTo(userModel_js_1.default, {
110
110
  },
111
111
  as: 'updatedByUser',
112
112
  });
113
- BatchModel.belongsTo(userModel_js_1.default, {
113
+ BatchModel.belongsTo(userModel_1.default, {
114
114
  foreignKey: {
115
115
  name: 'deletedBy',
116
116
  allowNull: true,
@@ -118,14 +118,14 @@ BatchModel.belongsTo(userModel_js_1.default, {
118
118
  },
119
119
  as: 'deletedByUser',
120
120
  });
121
- BatchModel.belongsTo(typeManagementModel_js_1.default, {
121
+ BatchModel.belongsTo(typeManagementModel_1.default, {
122
122
  foreignKey: {
123
123
  name: 'type',
124
124
  allowNull: false,
125
125
  },
126
126
  as: 'batchType',
127
127
  });
128
- BatchModel.belongsTo(instituteModel_js_1.default, {
128
+ BatchModel.belongsTo(instituteModel_1.default, {
129
129
  foreignKey: {
130
130
  name: 'instituteId',
131
131
  field: 'institute_id',
@@ -133,7 +133,7 @@ BatchModel.belongsTo(instituteModel_js_1.default, {
133
133
  },
134
134
  as: 'institute',
135
135
  });
136
- userModel_js_1.default.hasMany(BatchModel, {
136
+ userModel_1.default.hasMany(BatchModel, {
137
137
  foreignKey: {
138
138
  name: 'teacherId',
139
139
  field: 'teacher_id',
@@ -141,7 +141,7 @@ userModel_js_1.default.hasMany(BatchModel, {
141
141
  },
142
142
  as: 'batchesHasTeacher',
143
143
  });
144
- BatchModel.belongsTo(userModel_js_1.default, {
144
+ BatchModel.belongsTo(userModel_1.default, {
145
145
  foreignKey: {
146
146
  name: 'teacherId',
147
147
  field: 'teacher_id',
@@ -149,7 +149,7 @@ BatchModel.belongsTo(userModel_js_1.default, {
149
149
  },
150
150
  as: 'batchTeacher',
151
151
  });
152
- instituteModel_js_1.default.hasMany(BatchModel, {
152
+ instituteModel_1.default.hasMany(BatchModel, {
153
153
  foreignKey: {
154
154
  name: 'instituteId',
155
155
  field: 'institute_id',
@@ -157,7 +157,7 @@ instituteModel_js_1.default.hasMany(BatchModel, {
157
157
  },
158
158
  as: 'batches',
159
159
  });
160
- BatchModel.belongsTo(workingShiftModel_js_1.default, {
160
+ BatchModel.belongsTo(workingShiftModel_1.default, {
161
161
  foreignKey: {
162
162
  name: 'shiftId',
163
163
  field: 'shift_id',
@@ -165,7 +165,7 @@ BatchModel.belongsTo(workingShiftModel_js_1.default, {
165
165
  },
166
166
  as: 'shiftBatch',
167
167
  });
168
- slotModel_js_1.default.hasMany(BatchModel, {
168
+ slotModel_1.default.hasMany(BatchModel, {
169
169
  foreignKey: {
170
170
  name: 'slotId',
171
171
  field: 'slot_id',
@@ -173,7 +173,7 @@ slotModel_js_1.default.hasMany(BatchModel, {
173
173
  },
174
174
  as: 'batchesSlot',
175
175
  });
176
- BatchModel.belongsTo(slotModel_js_1.default, {
176
+ BatchModel.belongsTo(slotModel_1.default, {
177
177
  foreignKey: {
178
178
  name: 'slotId',
179
179
  field: 'slot_id',
@@ -181,7 +181,7 @@ BatchModel.belongsTo(slotModel_js_1.default, {
181
181
  },
182
182
  as: 'slotBatch',
183
183
  });
184
- workingShiftModel_js_1.default.hasMany(BatchModel, {
184
+ workingShiftModel_1.default.hasMany(BatchModel, {
185
185
  foreignKey: {
186
186
  name: 'shiftId',
187
187
  field: 'shift_id',
@@ -189,7 +189,7 @@ workingShiftModel_js_1.default.hasMany(BatchModel, {
189
189
  },
190
190
  as: 'batchesShift',
191
191
  });
192
- academicCalendarModel_js_1.default.hasMany(BatchModel, {
192
+ academicCalendarModel_1.default.hasMany(BatchModel, {
193
193
  foreignKey: {
194
194
  name: 'academicCalendarId',
195
195
  field: 'academic_calendar_id',
@@ -197,7 +197,7 @@ academicCalendarModel_js_1.default.hasMany(BatchModel, {
197
197
  },
198
198
  as: 'academicCalendarBatchList',
199
199
  });
200
- BatchModel.belongsTo(academicCalendarModel_js_1.default, {
200
+ BatchModel.belongsTo(academicCalendarModel_1.default, {
201
201
  foreignKey: {
202
202
  name: 'academicCalendarId',
203
203
  field: 'academic_calendar_id',
@@ -207,14 +207,14 @@ BatchModel.belongsTo(academicCalendarModel_js_1.default, {
207
207
  });
208
208
  BatchModel.afterBulkCreate(async (instances, options) => {
209
209
  for (const instance of instances) {
210
- await BatchModel.update({ plannerSyncStatus: app_js_1.PLANNER_SYNC_STATUS.PENDING }, {
210
+ await BatchModel.update({ plannerSyncStatus: app_1.PLANNER_SYNC_STATUS.PENDING }, {
211
211
  where: { id: { [sequelize_2.Op.in]: [instance.id] } },
212
212
  ...(options.transaction && { transaction: options.transaction }),
213
213
  });
214
214
  }
215
215
  });
216
216
  BatchModel.afterCreate(async (batch, options) => {
217
- await BatchModel.update({ plannerSyncStatus: app_js_1.PLANNER_SYNC_STATUS.PENDING }, {
217
+ await BatchModel.update({ plannerSyncStatus: app_1.PLANNER_SYNC_STATUS.PENDING }, {
218
218
  where: { id: { [sequelize_2.Op.in]: [batch.id] } },
219
219
  ...(options.transaction && { transaction: options.transaction }),
220
220
  });
@@ -1,6 +1,6 @@
1
1
  import { Model } from 'sequelize';
2
- import { IBatchSubjectBookAssessmentModelAttributes } from '../../interfaces/batchSubjectBookAssessmentInterface.js';
3
- import { TBatchSubjectBookAssessmentModelCreationAttributes } from '../../types/batchSubjectBookAssessmentType.js';
2
+ import { IBatchSubjectBookAssessmentModelAttributes } from '../../interfaces/batchSubjectBookAssessmentInterface';
3
+ import { TBatchSubjectBookAssessmentModelCreationAttributes } from '../../types/batchSubjectBookAssessmentType';
4
4
  declare class BatchSubjectBookAssessmentModel extends Model<IBatchSubjectBookAssessmentModelAttributes, TBatchSubjectBookAssessmentModelCreationAttributes> {
5
5
  id: string;
6
6
  batchId: string;
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const instituteModel_js_1 = __importDefault(require("./instituteModel.js"));
9
- const userModel_js_1 = __importDefault(require("./userModel.js"));
10
- const batchModel_js_1 = __importDefault(require("./batchModel.js"));
11
- const typeManagementModel_js_1 = __importDefault(require("./typeManagementModel.js"));
12
- const instituteEntityModel_js_1 = __importDefault(require("./instituteEntityModel.js"));
7
+ const index_1 = require("./index");
8
+ const instituteModel_1 = __importDefault(require("./instituteModel"));
9
+ const userModel_1 = __importDefault(require("./userModel"));
10
+ const batchModel_1 = __importDefault(require("./batchModel"));
11
+ const typeManagementModel_1 = __importDefault(require("./typeManagementModel"));
12
+ const instituteEntityModel_1 = __importDefault(require("./instituteEntityModel"));
13
13
  class BatchSubjectBookAssessmentModel extends sequelize_1.Model {
14
14
  }
15
15
  BatchSubjectBookAssessmentModel.init({
@@ -47,7 +47,7 @@ BatchSubjectBookAssessmentModel.init({
47
47
  }, {
48
48
  modelName: 'BatchSubjectBookAssessmentModel',
49
49
  tableName: 'batch_subject_book_assessments',
50
- sequelize: index_js_1.sequelize,
50
+ sequelize: index_1.sequelize,
51
51
  indexes: [
52
52
  {
53
53
  name: 'batch_subject_standard_institute',
@@ -59,77 +59,77 @@ BatchSubjectBookAssessmentModel.init({
59
59
  ],
60
60
  });
61
61
  // Associations
62
- BatchSubjectBookAssessmentModel.belongsTo(instituteModel_js_1.default, {
62
+ BatchSubjectBookAssessmentModel.belongsTo(instituteModel_1.default, {
63
63
  foreignKey: {
64
64
  name: 'instituteId',
65
65
  field: 'institute_id',
66
66
  },
67
67
  as: 'subjectBookAssessmentInstitute',
68
68
  });
69
- instituteModel_js_1.default.hasMany(BatchSubjectBookAssessmentModel, {
69
+ instituteModel_1.default.hasMany(BatchSubjectBookAssessmentModel, {
70
70
  foreignKey: {
71
71
  name: 'instituteId',
72
72
  field: 'institute_id',
73
73
  },
74
74
  as: 'instituteSubjectBookAssessmentList',
75
75
  });
76
- BatchSubjectBookAssessmentModel.belongsTo(batchModel_js_1.default, {
76
+ BatchSubjectBookAssessmentModel.belongsTo(batchModel_1.default, {
77
77
  foreignKey: {
78
78
  name: 'batchId',
79
79
  field: 'batch_id',
80
80
  },
81
81
  as: 'subjectBookAssessmentBatch',
82
82
  });
83
- batchModel_js_1.default.hasMany(BatchSubjectBookAssessmentModel, {
83
+ batchModel_1.default.hasMany(BatchSubjectBookAssessmentModel, {
84
84
  foreignKey: {
85
85
  name: 'batchId',
86
86
  field: 'batch_id',
87
87
  },
88
88
  as: 'batchSubjectBookAssessmentList',
89
89
  });
90
- BatchSubjectBookAssessmentModel.belongsTo(typeManagementModel_js_1.default, {
90
+ BatchSubjectBookAssessmentModel.belongsTo(typeManagementModel_1.default, {
91
91
  foreignKey: {
92
92
  name: 'assessmentType',
93
93
  field: 'assessment_type',
94
94
  },
95
95
  as: 'subjectBookAssessmentType',
96
96
  });
97
- typeManagementModel_js_1.default.hasMany(BatchSubjectBookAssessmentModel, {
97
+ typeManagementModel_1.default.hasMany(BatchSubjectBookAssessmentModel, {
98
98
  foreignKey: {
99
99
  name: 'assessmentType',
100
100
  field: 'assessment_type',
101
101
  },
102
102
  as: 'bookAssessmentTypeAssessmentList',
103
103
  });
104
- instituteEntityModel_js_1.default.hasMany(BatchSubjectBookAssessmentModel, {
104
+ instituteEntityModel_1.default.hasMany(BatchSubjectBookAssessmentModel, {
105
105
  foreignKey: {
106
106
  name: 'subjectId',
107
107
  field: 'subject_id',
108
108
  },
109
109
  as: 'subjectBookAssessmentList',
110
110
  });
111
- BatchSubjectBookAssessmentModel.belongsTo(instituteEntityModel_js_1.default, {
111
+ BatchSubjectBookAssessmentModel.belongsTo(instituteEntityModel_1.default, {
112
112
  foreignKey: {
113
113
  name: 'subjectId',
114
114
  field: 'subject_id',
115
115
  },
116
116
  as: 'bookAssessmentSubject',
117
117
  });
118
- instituteEntityModel_js_1.default.hasMany(BatchSubjectBookAssessmentModel, {
118
+ instituteEntityModel_1.default.hasMany(BatchSubjectBookAssessmentModel, {
119
119
  foreignKey: {
120
120
  name: 'standardId',
121
121
  field: 'standard_id',
122
122
  },
123
123
  as: 'standardBookAssessmentList',
124
124
  });
125
- BatchSubjectBookAssessmentModel.belongsTo(instituteEntityModel_js_1.default, {
125
+ BatchSubjectBookAssessmentModel.belongsTo(instituteEntityModel_1.default, {
126
126
  foreignKey: {
127
127
  name: 'standardId',
128
128
  field: 'standard_id',
129
129
  },
130
130
  as: 'bookAssessmentStandard',
131
131
  });
132
- BatchSubjectBookAssessmentModel.belongsTo(userModel_js_1.default, {
132
+ BatchSubjectBookAssessmentModel.belongsTo(userModel_1.default, {
133
133
  foreignKey: {
134
134
  name: 'createdBy',
135
135
  allowNull: true,
@@ -137,7 +137,7 @@ BatchSubjectBookAssessmentModel.belongsTo(userModel_js_1.default, {
137
137
  },
138
138
  as: 'createdByUser',
139
139
  });
140
- BatchSubjectBookAssessmentModel.belongsTo(userModel_js_1.default, {
140
+ BatchSubjectBookAssessmentModel.belongsTo(userModel_1.default, {
141
141
  foreignKey: {
142
142
  name: 'updatedBy',
143
143
  allowNull: true,
@@ -145,7 +145,7 @@ BatchSubjectBookAssessmentModel.belongsTo(userModel_js_1.default, {
145
145
  },
146
146
  as: 'updatedByUser',
147
147
  });
148
- BatchSubjectBookAssessmentModel.belongsTo(userModel_js_1.default, {
148
+ BatchSubjectBookAssessmentModel.belongsTo(userModel_1.default, {
149
149
  foreignKey: {
150
150
  name: 'deletedBy',
151
151
  allowNull: true,
@@ -1,6 +1,6 @@
1
1
  import { Model } from 'sequelize';
2
- import { IBatchSubjectProjectAssessmentModelAttributes } from '../../interfaces/batchSubjectProjectAssessmentInterface.js';
3
- import { TBatchSubjectProjectAssessmentModelCreationAttributes } from '../../types/batchSubjectProjectAssessmentType.js';
2
+ import { IBatchSubjectProjectAssessmentModelAttributes } from '../../interfaces/batchSubjectProjectAssessmentInterface';
3
+ import { TBatchSubjectProjectAssessmentModelCreationAttributes } from '../../types/batchSubjectProjectAssessmentType';
4
4
  declare class BatchSubjectProjectAssessmentModel extends Model<IBatchSubjectProjectAssessmentModelAttributes, TBatchSubjectProjectAssessmentModelCreationAttributes> {
5
5
  id: string;
6
6
  batchId: string;
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const instituteModel_js_1 = __importDefault(require("./instituteModel.js"));
9
- const userModel_js_1 = __importDefault(require("./userModel.js"));
10
- const batchModel_js_1 = __importDefault(require("./batchModel.js"));
11
- const instituteEntityModel_js_1 = __importDefault(require("./instituteEntityModel.js"));
7
+ const index_1 = require("./index");
8
+ const instituteModel_1 = __importDefault(require("./instituteModel"));
9
+ const userModel_1 = __importDefault(require("./userModel"));
10
+ const batchModel_1 = __importDefault(require("./batchModel"));
11
+ const instituteEntityModel_1 = __importDefault(require("./instituteEntityModel"));
12
12
  class BatchSubjectProjectAssessmentModel extends sequelize_1.Model {
13
13
  }
14
14
  BatchSubjectProjectAssessmentModel.init({
@@ -59,7 +59,7 @@ BatchSubjectProjectAssessmentModel.init({
59
59
  }, {
60
60
  modelName: 'BatchSubjectProjectAssessmentModel',
61
61
  tableName: 'batch_subject_project_assessments',
62
- sequelize: index_js_1.sequelize,
62
+ sequelize: index_1.sequelize,
63
63
  // indexes: [
64
64
  // {
65
65
  // name: 'batch_subject_project_assessments_unique',
@@ -71,63 +71,63 @@ BatchSubjectProjectAssessmentModel.init({
71
71
  // ],
72
72
  });
73
73
  // Associations
74
- BatchSubjectProjectAssessmentModel.belongsTo(instituteModel_js_1.default, {
74
+ BatchSubjectProjectAssessmentModel.belongsTo(instituteModel_1.default, {
75
75
  foreignKey: {
76
76
  name: 'instituteId',
77
77
  field: 'institute_id',
78
78
  },
79
79
  as: 'subjectProjectAssessmentInstitute',
80
80
  });
81
- instituteModel_js_1.default.hasMany(BatchSubjectProjectAssessmentModel, {
81
+ instituteModel_1.default.hasMany(BatchSubjectProjectAssessmentModel, {
82
82
  foreignKey: {
83
83
  name: 'instituteId',
84
84
  field: 'institute_id',
85
85
  },
86
86
  as: 'instituteSubjectProjectAssessmentList',
87
87
  });
88
- BatchSubjectProjectAssessmentModel.belongsTo(batchModel_js_1.default, {
88
+ BatchSubjectProjectAssessmentModel.belongsTo(batchModel_1.default, {
89
89
  foreignKey: {
90
90
  name: 'batchId',
91
91
  field: 'batch_id',
92
92
  },
93
93
  as: 'subjectProjectAssessmentBatch',
94
94
  });
95
- batchModel_js_1.default.hasMany(BatchSubjectProjectAssessmentModel, {
95
+ batchModel_1.default.hasMany(BatchSubjectProjectAssessmentModel, {
96
96
  foreignKey: {
97
97
  name: 'batchId',
98
98
  field: 'batch_id',
99
99
  },
100
100
  as: 'batchSubjectProjectAssessmentList',
101
101
  });
102
- instituteEntityModel_js_1.default.hasMany(BatchSubjectProjectAssessmentModel, {
102
+ instituteEntityModel_1.default.hasMany(BatchSubjectProjectAssessmentModel, {
103
103
  foreignKey: {
104
104
  name: 'subjectId',
105
105
  field: 'subject_id',
106
106
  },
107
107
  as: 'subjectProjectAssessmentList',
108
108
  });
109
- BatchSubjectProjectAssessmentModel.belongsTo(instituteEntityModel_js_1.default, {
109
+ BatchSubjectProjectAssessmentModel.belongsTo(instituteEntityModel_1.default, {
110
110
  foreignKey: {
111
111
  name: 'subjectId',
112
112
  field: 'subject_id',
113
113
  },
114
114
  as: 'projectAssessmentSubject',
115
115
  });
116
- instituteEntityModel_js_1.default.hasMany(BatchSubjectProjectAssessmentModel, {
116
+ instituteEntityModel_1.default.hasMany(BatchSubjectProjectAssessmentModel, {
117
117
  foreignKey: {
118
118
  name: 'standardId',
119
119
  field: 'standard_id',
120
120
  },
121
121
  as: 'standardProjectAssessmentList',
122
122
  });
123
- BatchSubjectProjectAssessmentModel.belongsTo(instituteEntityModel_js_1.default, {
123
+ BatchSubjectProjectAssessmentModel.belongsTo(instituteEntityModel_1.default, {
124
124
  foreignKey: {
125
125
  name: 'standardId',
126
126
  field: 'standard_id',
127
127
  },
128
128
  as: 'projectAssessmentStandard',
129
129
  });
130
- BatchSubjectProjectAssessmentModel.belongsTo(userModel_js_1.default, {
130
+ BatchSubjectProjectAssessmentModel.belongsTo(userModel_1.default, {
131
131
  foreignKey: {
132
132
  name: 'createdBy',
133
133
  allowNull: true,
@@ -135,7 +135,7 @@ BatchSubjectProjectAssessmentModel.belongsTo(userModel_js_1.default, {
135
135
  },
136
136
  as: 'createdByUser',
137
137
  });
138
- BatchSubjectProjectAssessmentModel.belongsTo(userModel_js_1.default, {
138
+ BatchSubjectProjectAssessmentModel.belongsTo(userModel_1.default, {
139
139
  foreignKey: {
140
140
  name: 'updatedBy',
141
141
  allowNull: true,
@@ -143,7 +143,7 @@ BatchSubjectProjectAssessmentModel.belongsTo(userModel_js_1.default, {
143
143
  },
144
144
  as: 'updatedByUser',
145
145
  });
146
- BatchSubjectProjectAssessmentModel.belongsTo(userModel_js_1.default, {
146
+ BatchSubjectProjectAssessmentModel.belongsTo(userModel_1.default, {
147
147
  foreignKey: {
148
148
  name: 'deletedBy',
149
149
  allowNull: true,
@@ -1,7 +1,7 @@
1
1
  import { Model } from 'sequelize';
2
- import { IBookAssessmentDateModelAttributes } from '../../interfaces/bookAssessmentDateInterface.js';
3
- import { TBookAssessmentDateModelCreationAttributes } from '../../types/bookAssessmentDateType.js';
4
- import { BOOK_ASSESSMENT_DATE_STATUS } from '../../constants/app.js';
2
+ import { IBookAssessmentDateModelAttributes } from '../../interfaces/bookAssessmentDateInterface';
3
+ import { TBookAssessmentDateModelCreationAttributes } from '../../types/bookAssessmentDateType';
4
+ import { BOOK_ASSESSMENT_DATE_STATUS } from '../../constants/app';
5
5
  declare class BookAssessmentDateModel extends Model<IBookAssessmentDateModelAttributes, TBookAssessmentDateModelCreationAttributes> {
6
6
  id: string;
7
7
  assessmentBookId: string;
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const userModel_js_1 = __importDefault(require("./userModel.js"));
9
- const batchSubjectBookAssessmentModel_js_1 = __importDefault(require("./batchSubjectBookAssessmentModel.js"));
10
- const app_js_1 = require("../../constants/app.js");
7
+ const index_1 = require("./index");
8
+ const userModel_1 = __importDefault(require("./userModel"));
9
+ const batchSubjectBookAssessmentModel_1 = __importDefault(require("./batchSubjectBookAssessmentModel"));
10
+ const app_1 = require("../../constants/app");
11
11
  class BookAssessmentDateModel extends sequelize_1.Model {
12
12
  }
13
13
  BookAssessmentDateModel.init({
@@ -28,13 +28,13 @@ BookAssessmentDateModel.init({
28
28
  },
29
29
  status: {
30
30
  type: sequelize_1.DataTypes.ENUM,
31
- values: Object.values(app_js_1.BOOK_ASSESSMENT_DATE_STATUS),
32
- defaultValue: app_js_1.BOOK_ASSESSMENT_DATE_STATUS.PENDING,
31
+ values: Object.values(app_1.BOOK_ASSESSMENT_DATE_STATUS),
32
+ defaultValue: app_1.BOOK_ASSESSMENT_DATE_STATUS.PENDING,
33
33
  },
34
34
  }, {
35
35
  modelName: 'BookAssessmentDateModel',
36
36
  tableName: 'book_assessment_dates',
37
- sequelize: index_js_1.sequelize,
37
+ sequelize: index_1.sequelize,
38
38
  indexes: [
39
39
  {
40
40
  name: 'assessment_book_id_date',
@@ -46,21 +46,21 @@ BookAssessmentDateModel.init({
46
46
  ],
47
47
  });
48
48
  // Associations
49
- BookAssessmentDateModel.belongsTo(batchSubjectBookAssessmentModel_js_1.default, {
49
+ BookAssessmentDateModel.belongsTo(batchSubjectBookAssessmentModel_1.default, {
50
50
  foreignKey: {
51
51
  name: 'assessmentBookId',
52
52
  field: 'assessment_book_id',
53
53
  },
54
54
  as: 'assessmentBook',
55
55
  });
56
- batchSubjectBookAssessmentModel_js_1.default.hasMany(BookAssessmentDateModel, {
56
+ batchSubjectBookAssessmentModel_1.default.hasMany(BookAssessmentDateModel, {
57
57
  foreignKey: {
58
58
  name: 'assessmentBookId',
59
59
  field: 'assessment_book_id',
60
60
  },
61
61
  as: 'subjectBookAssessmentDateList',
62
62
  });
63
- BookAssessmentDateModel.belongsTo(userModel_js_1.default, {
63
+ BookAssessmentDateModel.belongsTo(userModel_1.default, {
64
64
  foreignKey: {
65
65
  name: 'createdBy',
66
66
  allowNull: true,
@@ -68,7 +68,7 @@ BookAssessmentDateModel.belongsTo(userModel_js_1.default, {
68
68
  },
69
69
  as: 'createdByUser',
70
70
  });
71
- BookAssessmentDateModel.belongsTo(userModel_js_1.default, {
71
+ BookAssessmentDateModel.belongsTo(userModel_1.default, {
72
72
  foreignKey: {
73
73
  name: 'updatedBy',
74
74
  allowNull: true,
@@ -76,7 +76,7 @@ BookAssessmentDateModel.belongsTo(userModel_js_1.default, {
76
76
  },
77
77
  as: 'updatedByUser',
78
78
  });
79
- BookAssessmentDateModel.belongsTo(userModel_js_1.default, {
79
+ BookAssessmentDateModel.belongsTo(userModel_1.default, {
80
80
  foreignKey: {
81
81
  name: 'deletedBy',
82
82
  allowNull: true,
@@ -1,7 +1,7 @@
1
1
  import { Model } from 'sequelize';
2
- import { ICategoriesModelAttributes } from '../../interfaces/categoriesInterface.js';
3
- import { TCategoriesModelCreationAttributes } from '../../types/categoriesType.js';
4
- import { COMMAN_STATUS } from '../../constants/app.js';
2
+ import { ICategoriesModelAttributes } from '../../interfaces/categoriesInterface';
3
+ import { TCategoriesModelCreationAttributes } from '../../types/categoriesType';
4
+ import { COMMAN_STATUS } from '../../constants/app';
5
5
  declare class CategoriesModel extends Model<ICategoriesModelAttributes, TCategoriesModelCreationAttributes> {
6
6
  id: string;
7
7
  name: string;
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const sequelize_1 = require("sequelize");
7
- const index_js_1 = require("./index.js");
8
- const app_js_1 = require("../../constants/app.js");
9
- const instituteModel_js_1 = __importDefault(require("./instituteModel.js"));
10
- const userModel_js_1 = __importDefault(require("./userModel.js"));
7
+ const index_1 = require("./index");
8
+ const app_1 = require("../../constants/app");
9
+ const instituteModel_1 = __importDefault(require("./instituteModel"));
10
+ const userModel_1 = __importDefault(require("./userModel"));
11
11
  class CategoriesModel extends sequelize_1.Model {
12
12
  }
13
13
  CategoriesModel.init({
@@ -29,15 +29,15 @@ CategoriesModel.init({
29
29
  status: {
30
30
  type: sequelize_1.DataTypes.STRING(30),
31
31
  allowNull: false,
32
- defaultValue: app_js_1.COMMAN_STATUS.ACTIVE,
32
+ defaultValue: app_1.COMMAN_STATUS.ACTIVE,
33
33
  },
34
34
  }, {
35
35
  modelName: 'CategoriesModel',
36
36
  tableName: 'categories',
37
37
  timestamps: true,
38
- sequelize: index_js_1.sequelize,
38
+ sequelize: index_1.sequelize,
39
39
  });
40
- CategoriesModel.belongsTo(userModel_js_1.default, {
40
+ CategoriesModel.belongsTo(userModel_1.default, {
41
41
  foreignKey: {
42
42
  name: 'createdBy',
43
43
  allowNull: true,
@@ -45,7 +45,7 @@ CategoriesModel.belongsTo(userModel_js_1.default, {
45
45
  },
46
46
  as: 'createdByUser',
47
47
  });
48
- CategoriesModel.belongsTo(userModel_js_1.default, {
48
+ CategoriesModel.belongsTo(userModel_1.default, {
49
49
  foreignKey: {
50
50
  name: 'updatedBy',
51
51
  allowNull: true,
@@ -53,7 +53,7 @@ CategoriesModel.belongsTo(userModel_js_1.default, {
53
53
  },
54
54
  as: 'updatedByUser',
55
55
  });
56
- CategoriesModel.belongsTo(userModel_js_1.default, {
56
+ CategoriesModel.belongsTo(userModel_1.default, {
57
57
  foreignKey: {
58
58
  name: 'deletedBy',
59
59
  allowNull: true,
@@ -61,7 +61,7 @@ CategoriesModel.belongsTo(userModel_js_1.default, {
61
61
  },
62
62
  as: 'deletedByUser',
63
63
  });
64
- CategoriesModel.belongsTo(instituteModel_js_1.default, {
64
+ CategoriesModel.belongsTo(instituteModel_1.default, {
65
65
  foreignKey: {
66
66
  name: 'instituteId',
67
67
  field: 'institute_id',
@@ -69,7 +69,7 @@ CategoriesModel.belongsTo(instituteModel_js_1.default, {
69
69
  },
70
70
  as: 'institute',
71
71
  });
72
- instituteModel_js_1.default.hasMany(CategoriesModel, {
72
+ instituteModel_1.default.hasMany(CategoriesModel, {
73
73
  foreignKey: {
74
74
  name: 'instituteId',
75
75
  field: 'institute_id',
@@ -1,5 +1,5 @@
1
1
  import { Model } from 'sequelize';
2
- import { ICityAttributes } from '../../interfaces/cityInterface.js';
2
+ import { ICityAttributes } from '../../interfaces/cityInterface';
3
3
  declare class CityModel extends Model<ICityAttributes> implements ICityAttributes {
4
4
  id: number;
5
5
  countryCode: string;