@kipicore/dbcore 1.1.122 → 1.1.124

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 (238) hide show
  1. package/dist/db/psql/migrations/20251201085926-add_academicCalenderId_to_announcement.d.ts +2 -0
  2. package/dist/db/psql/migrations/20251201085926-add_academicCalenderId_to_announcement.js +23 -0
  3. package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.d.ts +2 -0
  4. package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.js +23 -0
  5. package/dist/db/psql/migrations/20251201092621-add_academicCalenderId_to_UHBatch.d.ts +2 -0
  6. package/dist/db/psql/migrations/20251201092621-add_academicCalenderId_to_UHBatch.js +23 -0
  7. package/dist/db/psql/migrations/20251201093210-add_academicCalenderId_to_classroom.d.ts +2 -0
  8. package/dist/db/psql/migrations/20251201093210-add_academicCalenderId_to_classroom.js +23 -0
  9. package/dist/db/psql/migrations/20251201093644-add_academicCalenderId_to_BankAccD.d.ts +2 -0
  10. package/dist/db/psql/migrations/20251201093644-add_academicCalenderId_to_BankAccD.js +23 -0
  11. package/dist/db/psql/migrations/20251201094148-add_academicCalenderId_to_workingD.d.ts +2 -0
  12. package/dist/db/psql/migrations/20251201094148-add_academicCalenderId_to_workingD.js +23 -0
  13. package/dist/db/psql/migrations/20251201094533-add_academicCalenderId_to_workingS.d.ts +2 -0
  14. package/dist/db/psql/migrations/20251201094533-add_academicCalenderId_to_workingS.js +23 -0
  15. package/dist/db/psql/migrations/20251201094828-add-academic-calendar-id-to-userhashomework.d.ts +2 -0
  16. package/dist/db/psql/migrations/20251201094828-add-academic-calendar-id-to-userhashomework.js +23 -0
  17. package/dist/db/psql/migrations/20251201095025-add_academicCalenderId_to_batchSubBookA.d.ts +2 -0
  18. package/dist/db/psql/migrations/20251201095025-add_academicCalenderId_to_batchSubBookA.js +23 -0
  19. package/dist/db/psql/migrations/20251201095408-add_academicCalenderId_to_batchSubProA.d.ts +2 -0
  20. package/dist/db/psql/migrations/20251201095408-add_academicCalenderId_to_batchSubProA.js +23 -0
  21. package/dist/db/psql/migrations/20251201100111-add_academicCalenderId_to_projectAOp.d.ts +2 -0
  22. package/dist/db/psql/migrations/20251201100111-add_academicCalenderId_to_projectAOp.js +23 -0
  23. package/dist/db/psql/migrations/20251201100553-add-academic-calendar-id-to-homework.d.ts +2 -0
  24. package/dist/db/psql/migrations/20251201100553-add-academic-calendar-id-to-homework.js +23 -0
  25. package/dist/db/psql/migrations/20251201100901-add_academicCalenderId_to_userHRollN.d.ts +2 -0
  26. package/dist/db/psql/migrations/20251201100901-add_academicCalenderId_to_userHRollN.js +23 -0
  27. package/dist/db/psql/migrations/20251201101407-add_academicCalenderId_to_feeHistory.d.ts +2 -0
  28. package/dist/db/psql/migrations/20251201101407-add_academicCalenderId_to_feeHistory.js +23 -0
  29. package/dist/db/psql/migrations/20251201102129-add_academicCalenderId_to_feeReminder.d.ts +2 -0
  30. package/dist/db/psql/migrations/20251201102129-add_academicCalenderId_to_feeReminder.js +23 -0
  31. package/dist/db/psql/migrations/20251201102622-add_academicCalenderId_to_paymentTerms.d.ts +2 -0
  32. package/dist/db/psql/migrations/20251201102622-add_academicCalenderId_to_paymentTerms.js +23 -0
  33. package/dist/db/psql/migrations/20251201103134-add_academicCalenderId_to_subjectHFee.d.ts +2 -0
  34. package/dist/db/psql/migrations/20251201103134-add_academicCalenderId_to_subjectHFee.js +23 -0
  35. package/dist/db/psql/migrations/20251201103447-add_academicCalenderId_to_lectureHistory.d.ts +2 -0
  36. package/dist/db/psql/migrations/20251201103447-add_academicCalenderId_to_lectureHistory.js +23 -0
  37. package/dist/db/psql/migrations/20251201103551-add-academic-calendar-id-to-greetings.d.ts +2 -0
  38. package/dist/db/psql/migrations/20251201103551-add-academic-calendar-id-to-greetings.js +23 -0
  39. package/dist/db/psql/migrations/20251201104336-add_academicCalenderId_to_lecture.d.ts +2 -0
  40. package/dist/db/psql/migrations/20251201104336-add_academicCalenderId_to_lecture.js +23 -0
  41. package/dist/db/psql/migrations/20251202041045-add_academic_Cal_masterL.d.ts +2 -0
  42. package/dist/db/psql/migrations/20251202041045-add_academic_Cal_masterL.js +21 -0
  43. package/dist/db/psql/migrations/20251202042541-add_academic_Cal_offer.d.ts +2 -0
  44. package/dist/db/psql/migrations/20251202042541-add_academic_Cal_offer.js +21 -0
  45. package/dist/db/psql/migrations/20251202042809-add-academic-calendar-id-to-schoolOffer.d.ts +2 -0
  46. package/dist/db/psql/migrations/20251202042809-add-academic-calendar-id-to-schoolOffer.js +23 -0
  47. package/dist/db/psql/migrations/20251202043001-add_academic_Cal_userHOffer.d.ts +2 -0
  48. package/dist/db/psql/migrations/20251202043001-add_academic_Cal_userHOffer.js +21 -0
  49. package/dist/db/psql/migrations/20251202043722-add_academic_Cal_pdcCheque.d.ts +2 -0
  50. package/dist/db/psql/migrations/20251202043722-add_academic_Cal_pdcCheque.js +21 -0
  51. package/dist/db/psql/migrations/20251202044220-add_academic_Cal_pdcChequeHistory.d.ts +2 -0
  52. package/dist/db/psql/migrations/20251202044220-add_academic_Cal_pdcChequeHistory.js +21 -0
  53. package/dist/db/psql/migrations/20251204101602-add_academic_cal_slot.d.ts +2 -0
  54. package/dist/db/psql/migrations/20251204101602-add_academic_cal_slot.js +21 -0
  55. package/dist/db/psql/migrations/20251204102512-add_academic_cal_syllabus.d.ts +2 -0
  56. package/dist/db/psql/migrations/20251204102512-add_academic_cal_syllabus.js +21 -0
  57. package/dist/db/psql/migrations/20251204103002-add_academic_cal_testimonial.d.ts +2 -0
  58. package/dist/db/psql/migrations/20251204103002-add_academic_cal_testimonial.js +21 -0
  59. package/dist/db/psql/migrations/20251204103254-add_academic_cal_trip.d.ts +2 -0
  60. package/dist/db/psql/migrations/20251204103254-add_academic_cal_trip.js +21 -0
  61. package/dist/db/psql/migrations/20251204103624-add_academic_cal_userBA.d.ts +2 -0
  62. package/dist/db/psql/migrations/20251204103624-add_academic_cal_userBA.js +21 -0
  63. package/dist/db/psql/migrations/20251204104027-add_academic_cal_userFeeType.d.ts +2 -0
  64. package/dist/db/psql/migrations/20251204104027-add_academic_cal_userFeeType.js +21 -0
  65. package/dist/db/psql/migrations/20251204104738-add_academic_cal_userHInventory.d.ts +2 -0
  66. package/dist/db/psql/migrations/20251204104738-add_academic_cal_userHInventory.js +21 -0
  67. package/dist/db/psql/migrations/20251204105047-add_academic_cal_userHInvenH.d.ts +2 -0
  68. package/dist/db/psql/migrations/20251204105047-add_academic_cal_userHInvenH.js +21 -0
  69. package/dist/db/psql/migrations/20251204105717-add_academic_cal_userHLeave.d.ts +2 -0
  70. package/dist/db/psql/migrations/20251204105717-add_academic_cal_userHLeave.js +21 -0
  71. package/dist/db/psql/migrations/20251204110256-add_academic_cal_userHLH.d.ts +2 -0
  72. package/dist/db/psql/migrations/20251204110256-add_academic_cal_userHLH.js +21 -0
  73. package/dist/db/psql/migrations/20251204110629-add_academic_cal_userLeaveReq.d.ts +2 -0
  74. package/dist/db/psql/migrations/20251204110629-add_academic_cal_userLeaveReq.js +21 -0
  75. package/dist/db/psql/migrations/20251204110928-add_academic_cal_userproAssessOp.d.ts +2 -0
  76. package/dist/db/psql/migrations/20251204110928-add_academic_cal_userproAssessOp.js +21 -0
  77. package/dist/db/psql/migrations/20251204112518-add_batchId_type_subHFee.d.ts +2 -0
  78. package/dist/db/psql/migrations/20251204112518-add_batchId_type_subHFee.js +31 -0
  79. package/dist/db/psql/migrations/20251208110114-add-thumbnail-introvideo-to-courses.d.ts +2 -0
  80. package/dist/db/psql/migrations/20251208110114-add-thumbnail-introvideo-to-courses.js +31 -0
  81. package/dist/db/psql/migrations/20251208112241-add-new-field.d.ts +2 -0
  82. package/dist/db/psql/migrations/20251208112241-add-new-field.js +21 -0
  83. package/dist/interfaces/announcementInterface.d.ts +1 -0
  84. package/dist/interfaces/approvalRequestInterface.d.ts +1 -0
  85. package/dist/interfaces/attendanceInterface.d.ts +1 -0
  86. package/dist/interfaces/bDayWishInterface.d.ts +1 -0
  87. package/dist/interfaces/bankAccountDetailsInterface.d.ts +1 -0
  88. package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -0
  89. package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -0
  90. package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -0
  91. package/dist/interfaces/certificatesManagementInterface.d.ts +1 -0
  92. package/dist/interfaces/classRoomInterface.d.ts +1 -0
  93. package/dist/interfaces/courseInterface.d.ts +2 -0
  94. package/dist/interfaces/dailyBookInterface.d.ts +1 -0
  95. package/dist/interfaces/eventInterface.d.ts +1 -0
  96. package/dist/interfaces/examGroupInterface.d.ts +1 -0
  97. package/dist/interfaces/examHasAnswerSheetInterface.d.ts +1 -0
  98. package/dist/interfaces/examInterface.d.ts +1 -0
  99. package/dist/interfaces/feeHistoryInterface.d.ts +1 -0
  100. package/dist/interfaces/feeReminderInterface.d.ts +1 -0
  101. package/dist/interfaces/feeReminderSettingInterface.d.ts +1 -0
  102. package/dist/interfaces/feeReminderTypeInterface.d.ts +1 -0
  103. package/dist/interfaces/feeTypeInterface.d.ts +1 -0
  104. package/dist/interfaces/generateIdCardInterface.d.ts +1 -0
  105. package/dist/interfaces/greetingsInterface.d.ts +1 -0
  106. package/dist/interfaces/holidayInterface.d.ts +1 -0
  107. package/dist/interfaces/homeworkInterface.d.ts +1 -0
  108. package/dist/interfaces/lectureHistoryInterface.d.ts +1 -0
  109. package/dist/interfaces/lectureInterface.d.ts +1 -0
  110. package/dist/interfaces/masterLeaveInterface.d.ts +1 -0
  111. package/dist/interfaces/offersInterface.d.ts +1 -0
  112. package/dist/interfaces/paymentTermsInterface.d.ts +1 -0
  113. package/dist/interfaces/pdcChequeInterface.d.ts +1 -0
  114. package/dist/interfaces/pdcHistoryInterface.d.ts +1 -0
  115. package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -0
  116. package/dist/interfaces/replaceTeacherInterface.d.ts +1 -0
  117. package/dist/interfaces/schoolFeeInterface.d.ts +1 -0
  118. package/dist/interfaces/schoolOfferInterface.d.ts +1 -0
  119. package/dist/interfaces/slotInterface.d.ts +1 -0
  120. package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
  121. package/dist/interfaces/syllabusInterface.d.ts +1 -0
  122. package/dist/interfaces/taskManagementInterface.d.ts +1 -0
  123. package/dist/interfaces/testimonialInterface.d.ts +1 -0
  124. package/dist/interfaces/tripInterface.d.ts +1 -0
  125. package/dist/interfaces/userBookAssessmentInterface.d.ts +1 -0
  126. package/dist/interfaces/userFeeTypeInterface.d.ts +1 -0
  127. package/dist/interfaces/userHasAnnouncementInterface.d.ts +1 -0
  128. package/dist/interfaces/userHasBatchInterface.d.ts +1 -0
  129. package/dist/interfaces/userHasHomeWorkInterface.d.ts +1 -0
  130. package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +1 -0
  131. package/dist/interfaces/userHasInventoryInterface.d.ts +1 -0
  132. package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +1 -0
  133. package/dist/interfaces/userHasLeaveInterface.d.ts +1 -0
  134. package/dist/interfaces/userHasOfferInterface.d.ts +1 -0
  135. package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -0
  136. package/dist/interfaces/userInstituteMetaInterface.d.ts +1 -0
  137. package/dist/interfaces/userLeaveRequestInterface.d.ts +1 -0
  138. package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +1 -0
  139. package/dist/interfaces/workingDayInterface.d.ts +1 -0
  140. package/dist/interfaces/workingShiftInterface.d.ts +1 -0
  141. package/dist/models/mongodb/approvalRequestModel.js +4 -0
  142. package/dist/models/mongodb/attendanceModel.js +4 -0
  143. package/dist/models/mongodb/bDayWishModel.js +1 -0
  144. package/dist/models/mongodb/certificatesHistoryModel.js +4 -0
  145. package/dist/models/mongodb/certificatesManagementModel.js +4 -0
  146. package/dist/models/mongodb/dailyBookModel.js +4 -0
  147. package/dist/models/mongodb/eventModel.js +4 -0
  148. package/dist/models/mongodb/examGroupModel.js +4 -0
  149. package/dist/models/mongodb/examHasAnswerSheetModel.js +4 -0
  150. package/dist/models/mongodb/examModel.js +4 -0
  151. package/dist/models/mongodb/feeReminderTypeModel.js +4 -0
  152. package/dist/models/mongodb/generateIdCardModel.js +4 -0
  153. package/dist/models/mongodb/holidayModel.js +4 -0
  154. package/dist/models/mongodb/replaceTeacherModel.js +4 -0
  155. package/dist/models/mongodb/schoolFeeModel.js +4 -0
  156. package/dist/models/mongodb/taskManagementModel.js +4 -0
  157. package/dist/models/mongodb/userInstituteMetaModel.js +4 -0
  158. package/dist/models/psql/announcementModel.d.ts +1 -0
  159. package/dist/models/psql/announcementModel.js +14 -1
  160. package/dist/models/psql/bankAccountDetailsModel.d.ts +1 -0
  161. package/dist/models/psql/bankAccountDetailsModel.js +10 -1
  162. package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +1 -0
  163. package/dist/models/psql/batchSubjectBookAssessmentModel.js +10 -1
  164. package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +1 -0
  165. package/dist/models/psql/batchSubjectProjectAssessmentModel.js +10 -1
  166. package/dist/models/psql/classRoomModel.d.ts +1 -0
  167. package/dist/models/psql/classRoomModel.js +20 -1
  168. package/dist/models/psql/courseModel.d.ts +2 -0
  169. package/dist/models/psql/courseModel.js +27 -1
  170. package/dist/models/psql/feeHistoryModel.d.ts +1 -0
  171. package/dist/models/psql/feeHistoryModel.js +9 -1
  172. package/dist/models/psql/feeReminderModel.d.ts +1 -0
  173. package/dist/models/psql/feeReminderModel.js +14 -1
  174. package/dist/models/psql/feeReminderSettingModel.d.ts +1 -0
  175. package/dist/models/psql/feeReminderSettingModel.js +9 -1
  176. package/dist/models/psql/feeTypeModel.d.ts +1 -0
  177. package/dist/models/psql/feeTypeModel.js +14 -1
  178. package/dist/models/psql/greetingsModel.d.ts +1 -0
  179. package/dist/models/psql/greetingsModel.js +14 -1
  180. package/dist/models/psql/homeWorkModel.d.ts +1 -0
  181. package/dist/models/psql/homeWorkModel.js +14 -1
  182. package/dist/models/psql/lectureHistoryModel.d.ts +1 -0
  183. package/dist/models/psql/lectureHistoryModel.js +14 -1
  184. package/dist/models/psql/lectureModel.d.ts +1 -0
  185. package/dist/models/psql/lectureModel.js +14 -1
  186. package/dist/models/psql/masterLeaveModel.d.ts +1 -0
  187. package/dist/models/psql/masterLeaveModel.js +14 -1
  188. package/dist/models/psql/offerModel.d.ts +1 -0
  189. package/dist/models/psql/offerModel.js +13 -1
  190. package/dist/models/psql/paymentTermsModel.d.ts +1 -0
  191. package/dist/models/psql/paymentTermsModel.js +14 -1
  192. package/dist/models/psql/pdcChequeModel.d.ts +1 -0
  193. package/dist/models/psql/pdcChequeModel.js +14 -1
  194. package/dist/models/psql/pdcHistoryModel.d.ts +1 -0
  195. package/dist/models/psql/pdcHistoryModel.js +14 -1
  196. package/dist/models/psql/projectAssessmentOptionModel.d.ts +1 -0
  197. package/dist/models/psql/projectAssessmentOptionModel.js +10 -1
  198. package/dist/models/psql/schoolOfferModel.d.ts +1 -0
  199. package/dist/models/psql/schoolOfferModel.js +14 -1
  200. package/dist/models/psql/slotModel.d.ts +1 -0
  201. package/dist/models/psql/slotModel.js +14 -1
  202. package/dist/models/psql/subjectHasFeeModel.js +3 -3
  203. package/dist/models/psql/syllabusModel.d.ts +1 -0
  204. package/dist/models/psql/syllabusModel.js +14 -1
  205. package/dist/models/psql/testimonialModel.d.ts +1 -0
  206. package/dist/models/psql/testimonialModel.js +14 -1
  207. package/dist/models/psql/tripModel.d.ts +1 -0
  208. package/dist/models/psql/tripModel.js +14 -1
  209. package/dist/models/psql/userBookAssessmentModel.d.ts +1 -0
  210. package/dist/models/psql/userBookAssessmentModel.js +14 -1
  211. package/dist/models/psql/userFeeTypeModel.js +14 -1
  212. package/dist/models/psql/userHasAnnouncementModel.d.ts +1 -0
  213. package/dist/models/psql/userHasAnnouncementModel.js +14 -1
  214. package/dist/models/psql/userHasBatchModel.d.ts +1 -0
  215. package/dist/models/psql/userHasBatchModel.js +20 -1
  216. package/dist/models/psql/userHasHomeWorkModel.d.ts +1 -0
  217. package/dist/models/psql/userHasHomeWorkModel.js +14 -1
  218. package/dist/models/psql/userHasInventoryHistoryModel.d.ts +1 -0
  219. package/dist/models/psql/userHasInventoryHistoryModel.js +14 -1
  220. package/dist/models/psql/userHasInventoryModel.d.ts +1 -0
  221. package/dist/models/psql/userHasInventoryModel.js +14 -1
  222. package/dist/models/psql/userHasLeaveHistoryModel.d.ts +1 -0
  223. package/dist/models/psql/userHasLeaveHistoryModel.js +14 -1
  224. package/dist/models/psql/userHasLeaveModel.d.ts +1 -0
  225. package/dist/models/psql/userHasLeaveModel.js +14 -1
  226. package/dist/models/psql/userHasOfferModel.d.ts +1 -0
  227. package/dist/models/psql/userHasOfferModel.js +13 -1
  228. package/dist/models/psql/userHasRollNumberModel.d.ts +1 -0
  229. package/dist/models/psql/userHasRollNumberModel.js +14 -1
  230. package/dist/models/psql/userLeaveRequestModel.d.ts +1 -0
  231. package/dist/models/psql/userLeaveRequestModel.js +14 -1
  232. package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +1 -0
  233. package/dist/models/psql/userProjectAssessmentOptionModel.js +14 -1
  234. package/dist/models/psql/workingDayModel.d.ts +1 -0
  235. package/dist/models/psql/workingDayModel.js +10 -1
  236. package/dist/models/psql/workingShiftModel.d.ts +1 -0
  237. package/dist/models/psql/workingShiftModel.js +10 -1
  238. package/package.json +1 -1
@@ -18,4 +18,5 @@ export interface IFeeHistoryModelAttributes extends IDefaultAttributes {
18
18
  bankAccountId?: string | null;
19
19
  parentHistoryId?: string | null;
20
20
  schoolFeeCollectionId?: string | null;
21
+ academicCalendarId?: string;
21
22
  }
@@ -10,4 +10,5 @@ export interface IFeeReminderModelAttributes extends IDefaultAttributes {
10
10
  feeCollectionId: string;
11
11
  dueDate: Date;
12
12
  dueAmount: number;
13
+ academicCalendarId?: string;
13
14
  }
@@ -7,4 +7,5 @@ export interface IFeeReminderSettingModelAttributes extends IDefaultAttributes {
7
7
  status: FEE_REMINDER_SETTING_STATUS;
8
8
  typeId: string;
9
9
  default: BOOLEAN_STATUS;
10
+ academicCalendarId?: string;
10
11
  }
@@ -7,4 +7,5 @@ export interface IFeeReminderTypeModelAttributes extends IDefaultAttributes, Doc
7
7
  day: number;
8
8
  frequency: FEE_REMINDER_SETTING_FREQUENCY;
9
9
  instituteId: string;
10
+ academicCalendarId?: string;
10
11
  }
@@ -10,4 +10,5 @@ export interface IFeeTypeModelAttributes extends IDefaultAttributes {
10
10
  account: string;
11
11
  instituteId: string;
12
12
  isDefault: BOOLEAN_STATUS;
13
+ academicCalendarId: string;
13
14
  }
@@ -5,4 +5,5 @@ export interface IGenarateIdCardModelAttributes extends IDefaultAttributes, Docu
5
5
  templateName: string;
6
6
  content?: string;
7
7
  instituteId: string;
8
+ academicCalendarId: string;
8
9
  }
@@ -9,4 +9,5 @@ export interface IGreetingsModelAttributes extends IDefaultAttributes {
9
9
  status: COMMAN_STATUS;
10
10
  title: string;
11
11
  image: string;
12
+ academicCalendarId: string;
12
13
  }
@@ -19,4 +19,5 @@ export interface IHolidayModelAttributes extends IDefaultAttributes, Document {
19
19
  endTime: Date;
20
20
  typeManagementId: string;
21
21
  plannerSyncStatus?: PLANNER_SYNC_STATUS;
22
+ academicCalendarId: string;
22
23
  }
@@ -10,4 +10,5 @@ export interface IHomeWorkModelAttributes extends IDefaultAttributes {
10
10
  fileStorageId: string[];
11
11
  submissionDate: Date;
12
12
  instituteId: string;
13
+ academicCalendarId: string;
13
14
  }
@@ -21,4 +21,5 @@ export interface ILectureHistoryModelAttributes extends IDefaultAttributes {
21
21
  color?: string;
22
22
  lectureId: string;
23
23
  weekNumber: number;
24
+ academicCalendarId?: string;
24
25
  }
@@ -23,4 +23,5 @@ export interface ILectureModelAttributes extends IDefaultAttributes {
23
23
  plannerSyncStatus?: PLANNER_SYNC_STATUS;
24
24
  shiftId?: string;
25
25
  slotId?: string;
26
+ academicCalendarId?: string;
26
27
  }
@@ -10,4 +10,5 @@ export interface IMasterLeaveModelAttributes extends IDefaultAttributes {
10
10
  endTermDuration: Date;
11
11
  leave: LEAVE;
12
12
  status: COMMAN_STATUS;
13
+ academicCalendarId?: string;
13
14
  }
@@ -15,4 +15,5 @@ export interface IOffersModelAttributes extends IDefaultAttributes {
15
15
  endTime?: Date;
16
16
  userLimit?: number;
17
17
  offerType: OFFER_NAME;
18
+ academicCalendarId?: string;
18
19
  }
@@ -12,4 +12,5 @@ export interface IPaymentTermsModelAttributes extends IDefaultAttributes {
12
12
  instituteId: string;
13
13
  userId: string;
14
14
  feeCollectionId: string;
15
+ academicCalendarId?: string;
15
16
  }
@@ -13,4 +13,5 @@ export interface IPdcChequeModelAttributes extends IDefaultAttributes {
13
13
  bankName: string;
14
14
  frequency: PDF_CHEQUE_FREQUENCY;
15
15
  standardId: string;
16
+ academicCalendarId?: string;
16
17
  }
@@ -14,4 +14,5 @@ export interface IPdcHistoryModelAttributes extends IDefaultAttributes {
14
14
  bankName: string;
15
15
  frequency: PDF_CHEQUE_FREQUENCY;
16
16
  standardId: string;
17
+ academicCalendarId?: string;
17
18
  }
@@ -5,4 +5,5 @@ export interface IProjectAssessmentOptionModelAttributes extends IDefaultAttribu
5
5
  title: string;
6
6
  subTitle: string;
7
7
  descriptions: string;
8
+ academicCalendarId?: string;
8
9
  }
@@ -19,4 +19,5 @@ export interface IReplaceTeacherModelAttributes extends IDefaultAttributes, Docu
19
19
  teacherType: TEACHER_TYPE;
20
20
  batches: IReplaceTeacherBatchesSchema[];
21
21
  replaceTeacherStatus: REPLACE_TEACHER_STATUS;
22
+ academicCalendarId: String;
22
23
  }
@@ -18,4 +18,5 @@ export interface ISchoolFeeModelAttributes extends IDefaultAttributes, Document
18
18
  stdId: string[];
19
19
  commonDueDate: number;
20
20
  fees: IFeeSchema[];
21
+ academicCalendarId: string;
21
22
  }
@@ -17,4 +17,5 @@ export interface ISchoolOffersModelAttributes extends IDefaultAttributes {
17
17
  noLimit: boolean;
18
18
  account: string;
19
19
  applicableOn: string[];
20
+ academicCalendarId: string;
20
21
  }
@@ -5,4 +5,5 @@ export interface ISlotModelAttributes extends IDefaultAttributes {
5
5
  name: string;
6
6
  instituteId: string;
7
7
  type: SCHOOL_SHIFT;
8
+ academicCalendarId?: string;
8
9
  }
@@ -4,7 +4,7 @@ export interface ISubjectHasFeeModelAttributes extends IDefaultAttributes {
4
4
  instituteId: string;
5
5
  subjectId: string;
6
6
  fee: number;
7
- academicCalenderId?: string;
7
+ academicCalendarId?: string;
8
8
  batchId?: string;
9
9
  batchType?: string;
10
10
  }
@@ -6,4 +6,5 @@ export interface ISyllabusModelAttributes extends IDefaultAttributes {
6
6
  instituteId: string;
7
7
  subjectId: string;
8
8
  id: string;
9
+ academicCalendarId?: string;
9
10
  }
@@ -21,4 +21,5 @@ export interface ITaskManagementModelAttributes extends IDefaultAttributes, Docu
21
21
  instituteId: string;
22
22
  startDate?: Date;
23
23
  endDate?: Date;
24
+ academicCalendarId?: string;
24
25
  }
@@ -9,4 +9,5 @@ export interface ITestimonialModelAttributes extends IDefaultAttributes {
9
9
  rating: number;
10
10
  userType: USER_TYPES;
11
11
  class?: string | null;
12
+ academicCalendarId?: string;
12
13
  }
@@ -10,4 +10,5 @@ export interface ITripModelAttributes extends IDefaultAttributes {
10
10
  instituteId: string;
11
11
  departure: Date;
12
12
  arrival: Date;
13
+ academicCalendarId?: string;
13
14
  }
@@ -7,4 +7,5 @@ export interface IUserBookAssessmentModelAttributes extends IDefaultAttributes {
7
7
  batchId: string;
8
8
  userId: string;
9
9
  status?: USER_BOOK_ASSESSMENT_STATUS;
10
+ academicCalendarId?: string;
10
11
  }
@@ -13,4 +13,5 @@ export interface IUserFeeTypeModelAttributes extends IDefaultAttributes {
13
13
  grNumber?: string;
14
14
  rollNumber: string;
15
15
  feeCollectionAccountId: string;
16
+ academicCalendarId?: string;
16
17
  }
@@ -6,4 +6,5 @@ export interface IUserHasAnnouncementModelAttributes extends IDefaultAttributes
6
6
  announcementId: string;
7
7
  instituteId?: string;
8
8
  status?: USER_HAS_ANNOUCEMENT_STATUS;
9
+ academicCalendarId?: string;
9
10
  }
@@ -4,4 +4,5 @@ export interface IUserHasBatchModelAttributes extends IDefaultAttributes {
4
4
  batchId: string;
5
5
  userId: string;
6
6
  subjects: string[];
7
+ academicCalendarId?: string;
7
8
  }
@@ -8,4 +8,5 @@ export interface IUserHasHomeWorkModelAttributes extends IDefaultAttributes {
8
8
  note?: string;
9
9
  studentStatus?: HOME_WORK_STATUS;
10
10
  instituteStatus?: HOME_WORK_STATUS;
11
+ academicCalendarId: string;
11
12
  }
@@ -17,4 +17,5 @@ export interface IUserHasInventoryHistoryModelAttributes extends IDefaultAttribu
17
17
  action: USER_INVENTORY_ACTION;
18
18
  remainingQuantity: number;
19
19
  totalQuantity: number;
20
+ academicCalendarId?: string;
20
21
  }
@@ -18,4 +18,5 @@ export interface IUserHasInventoryModelAttributes extends IDefaultAttributes {
18
18
  penalty?: number;
19
19
  returnNote?: string;
20
20
  instituteId: string;
21
+ academicCalendarId?: string;
21
22
  }
@@ -13,4 +13,5 @@ export interface IUserHasLeaveHistoryModelAttributes extends IDefaultAttributes
13
13
  status: LEAVE_STATUS;
14
14
  startTime: Date;
15
15
  endTime: Date;
16
+ academicCalendarId?: string;
16
17
  }
@@ -9,4 +9,5 @@ export interface IUserHasLeaveModelAttributes extends IDefaultAttributes {
9
9
  leaveId: string;
10
10
  userHasLeaveId?: string;
11
11
  leave: LEAVE;
12
+ academicCalendarId?: string;
12
13
  }
@@ -7,4 +7,5 @@ export interface IUserHasOfferModelAttributes extends IDefaultAttributes {
7
7
  courseId?: string;
8
8
  offerId: string;
9
9
  discountAmount: number;
10
+ academicCalendarId?: string;
10
11
  }
@@ -5,4 +5,5 @@ export interface IUserHasRollNumberModelAttributes extends IDefaultAttributes {
5
5
  instituteId: string;
6
6
  rollNumber: number;
7
7
  batchId: string;
8
+ academicCalendarId?: string;
8
9
  }
@@ -37,4 +37,5 @@ export interface IUserInstituteMetaAttributes extends IDefaultAttributes, Docume
37
37
  secondarySubject?: string[];
38
38
  lastGreetingDate?: Date;
39
39
  isSyncToSubscriptionPlan?: boolean;
40
+ academicCalendarId?: string;
40
41
  }
@@ -12,4 +12,5 @@ export interface IUserLeaveRequestModelAttributes extends IDefaultAttributes {
12
12
  status: LEAVE_STATUS;
13
13
  startTime: Date;
14
14
  endTime: Date;
15
+ academicCalendarId?: string;
15
16
  }
@@ -7,4 +7,5 @@ export interface IUserProjectAssessmentOptionModelAttributes extends IDefaultAtt
7
7
  userId: string;
8
8
  status?: PROJECT_ASSESSMENT_OPTION_STATUS;
9
9
  note?: string;
10
+ academicCalendarId?: string;
10
11
  }
@@ -8,4 +8,5 @@ export interface IWorkingDayAttributes extends IDefaultAttributes {
8
8
  status?: WORKIN_DAY_STATUS;
9
9
  instituteId?: string;
10
10
  dayOfWeek: number;
11
+ academicCalendarId?: string;
11
12
  }
@@ -9,4 +9,5 @@ export interface IWorkingShiftAttributes extends IDefaultAttributes {
9
9
  status?: WORKIN_DAY_STATUS;
10
10
  shiftType: SCHOOL_SHIFT;
11
11
  instituteId?: string;
12
+ academicCalendarId?: string;
12
13
  }
@@ -72,6 +72,10 @@ const approveRequestSchema = new mongoose_1.Schema({
72
72
  type: String,
73
73
  required: false,
74
74
  },
75
+ academicCalendarId: {
76
+ type: String,
77
+ required: false,
78
+ },
75
79
  createdBy: {
76
80
  type: String,
77
81
  required: false,
@@ -86,6 +86,10 @@ const attendanceModelSchema = new mongoose_1.Schema({
86
86
  type: String,
87
87
  required: true,
88
88
  },
89
+ academicCalendarId: {
90
+ type: String,
91
+ required: false,
92
+ },
89
93
  users: {
90
94
  type: [attendanceUserSchema],
91
95
  required: true,
@@ -41,6 +41,7 @@ const userSchema = new mongoose_1.Schema({
41
41
  }, { _id: false });
42
42
  const bDayWishModelSchema = new mongoose_1.Schema({
43
43
  instituteId: { type: String, required: true },
44
+ academicCalendarId: { type: String, required: false },
44
45
  userIds: { type: [userSchema], default: [] },
45
46
  userId: { type: String, required: true },
46
47
  date: { type: Date, required: true },
@@ -53,6 +53,10 @@ const CertificatesHistorySchema = new mongoose_1.Schema({
53
53
  type: Object,
54
54
  required: false,
55
55
  },
56
+ academicCalendarId: {
57
+ type: String,
58
+ required: false,
59
+ }
56
60
  }, { timestamps: true, versionKey: false });
57
61
  const CertificatesHistory = mongoose_1.default.model('certificates_history', CertificatesHistorySchema);
58
62
  exports.default = CertificatesHistory;
@@ -49,6 +49,10 @@ const CertificatesManagementSchema = new mongoose_1.Schema({
49
49
  type: String,
50
50
  required: false,
51
51
  },
52
+ academicCalendarId: {
53
+ type: String,
54
+ required: false,
55
+ },
52
56
  additionalData: {
53
57
  type: Object,
54
58
  required: false,
@@ -47,6 +47,10 @@ const DailyBookSchema = new mongoose_1.Schema({
47
47
  type: String,
48
48
  required: false,
49
49
  },
50
+ academicCalendarId: {
51
+ type: String,
52
+ required: false,
53
+ },
50
54
  batchId: {
51
55
  type: String,
52
56
  required: false,
@@ -100,6 +100,10 @@ const eventModelSchema = new mongoose_1.Schema({
100
100
  type: String,
101
101
  required: false,
102
102
  },
103
+ academicCalendarId: {
104
+ type: String,
105
+ required: false,
106
+ },
103
107
  createdBy: {
104
108
  type: String,
105
109
  required: false,
@@ -111,6 +111,10 @@ const examGroupModelSchema = new mongoose_1.Schema({
111
111
  type: String,
112
112
  required: true,
113
113
  },
114
+ academicCalendarId: {
115
+ type: String,
116
+ required: false,
117
+ },
114
118
  startDate: {
115
119
  type: Date,
116
120
  required: true,
@@ -116,6 +116,10 @@ const examHasAnswerSheetSchema = new mongoose_1.Schema({
116
116
  default: '',
117
117
  required: false,
118
118
  },
119
+ academicCalendarId: {
120
+ type: String,
121
+ required: false
122
+ }
119
123
  }, {
120
124
  timestamps: true,
121
125
  versionKey: false,
@@ -194,6 +194,10 @@ const examModelSchema = new mongoose_1.Schema({
194
194
  type: String,
195
195
  default: app_1.PLANNER_SYNC_STATUS.PENDING,
196
196
  },
197
+ academicCalendarId: {
198
+ type: String,
199
+ required: false,
200
+ },
197
201
  }, {
198
202
  timestamps: true,
199
203
  versionKey: false,
@@ -53,6 +53,10 @@ const feeReminderTypeModelSchema = new mongoose_1.Schema({
53
53
  type: String,
54
54
  required: true,
55
55
  },
56
+ academicCalendarId: {
57
+ type: String,
58
+ required: false,
59
+ },
56
60
  createdBy: {
57
61
  type: String,
58
62
  required: false,
@@ -47,6 +47,10 @@ const GenerateIdCardSchema = new mongoose_1.Schema({
47
47
  type: String,
48
48
  required: false,
49
49
  },
50
+ academicCalendarId: {
51
+ type: String,
52
+ required: false,
53
+ },
50
54
  }, {
51
55
  timestamps: true,
52
56
  versionKey: false,
@@ -96,6 +96,10 @@ const holidayModelSchema = new mongoose_1.Schema({
96
96
  type: String,
97
97
  required: false,
98
98
  },
99
+ academicCalendarId: {
100
+ type: String,
101
+ required: false,
102
+ },
99
103
  startTime: {
100
104
  type: Date,
101
105
  required: true,
@@ -87,6 +87,10 @@ const ReplaceTeacherSchema = new mongoose_1.Schema({
87
87
  required: true,
88
88
  trim: true,
89
89
  },
90
+ academicCalendarId: {
91
+ type: String,
92
+ required: false,
93
+ },
90
94
  status: {
91
95
  type: String,
92
96
  enum: Object.values(app_1.COMMAN_STATUS),
@@ -102,6 +102,10 @@ const schoolFeeSchema = new mongoose_1.Schema({
102
102
  default: [],
103
103
  required: true,
104
104
  },
105
+ academicCalendarId: {
106
+ type: String,
107
+ required: false,
108
+ },
105
109
  createdBy: {
106
110
  type: String,
107
111
  required: false,
@@ -110,6 +110,10 @@ const TaskManagementModelSchema = new mongoose_1.Schema({
110
110
  endDate: {
111
111
  type: Date,
112
112
  },
113
+ academicCalendarId: {
114
+ type: String,
115
+ required: false,
116
+ }
113
117
  }, {
114
118
  timestamps: true,
115
119
  versionKey: false,
@@ -78,6 +78,10 @@ const userInstituteMetaSchema = new mongoose_1.Schema({
78
78
  type: String,
79
79
  required: true,
80
80
  },
81
+ academicCalendarId: {
82
+ type: String,
83
+ required: false,
84
+ },
81
85
  userType: {
82
86
  type: String,
83
87
  enum: Object.values(app_1.USER_TYPES),
@@ -18,6 +18,7 @@ export declare class AnnouncementModel extends Model<IAnnouncementModelAttribute
18
18
  fileStorageId?: string;
19
19
  link?: string;
20
20
  entityIds: string[];
21
+ academicCalendarId: string;
21
22
  createdBy?: string;
22
23
  updatedBy?: string;
23
24
  deletedBy?: string;
@@ -7,7 +7,7 @@ const app_1 = require("../../constants/app");
7
7
  const errorMessages_1 = require("../../constants/errorMessages");
8
8
  class AnnouncementModel extends sequelize_1.Model {
9
9
  static associate(models) {
10
- const { UserModel, InstituteModel, FileStorageModel } = models;
10
+ const { UserModel, InstituteModel, FileStorageModel, AcademicCalendarModel, } = models;
11
11
  AnnouncementModel.belongsTo(UserModel, {
12
12
  foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
13
13
  as: 'createdByUser',
@@ -36,6 +36,14 @@ class AnnouncementModel extends sequelize_1.Model {
36
36
  foreignKey: 'fileStorageId',
37
37
  as: 'announcementHasFileList',
38
38
  });
39
+ AnnouncementModel.belongsTo(AcademicCalendarModel, {
40
+ foreignKey: { name: 'academicCalendarId' },
41
+ as: 'announcementAcademicCal',
42
+ });
43
+ AcademicCalendarModel.hasMany(AnnouncementModel, {
44
+ foreignKey: 'academicCalendarId',
45
+ as: 'academicCalAnnouncement',
46
+ });
39
47
  }
40
48
  static addHooks(models) {
41
49
  const { InstituteEntityModel, BatchModel, UserModel } = models;
@@ -144,6 +152,11 @@ AnnouncementModel.init({
144
152
  field: 'institute_id',
145
153
  allowNull: true,
146
154
  },
155
+ academicCalendarId: {
156
+ type: sequelize_1.DataTypes.UUID,
157
+ field: 'academic_calendar_id',
158
+ allowNull: true,
159
+ },
147
160
  userIds: {
148
161
  type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.UUID),
149
162
  field: 'user_ids',
@@ -13,6 +13,7 @@ export declare class BankAccountDetailsModel extends Model<IBankAccountDetailsIn
13
13
  status: COMMAN_STATUS;
14
14
  isDefault: BOOLEAN_STATUS;
15
15
  isSelfAccount: BOOLEAN_STATUS;
16
+ academicCalendarId: string;
16
17
  createdBy?: string;
17
18
  updatedBy?: string;
18
19
  deletedBy?: string;
@@ -6,7 +6,7 @@ const index_1 = require("./index");
6
6
  const app_1 = require("../../constants/app");
7
7
  class BankAccountDetailsModel extends sequelize_1.Model {
8
8
  static associate(models) {
9
- const { InstituteModel, UserModel } = models;
9
+ const { InstituteModel, UserModel, AcademicCalendarModel } = models;
10
10
  BankAccountDetailsModel.belongsTo(InstituteModel, {
11
11
  foreignKey: { name: 'instituteId', field: 'institute_id' },
12
12
  as: 'bankAccountDetailsInstitute',
@@ -27,6 +27,10 @@ class BankAccountDetailsModel extends sequelize_1.Model {
27
27
  foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
28
28
  as: 'deletedByUser',
29
29
  });
30
+ BankAccountDetailsModel.belongsTo(AcademicCalendarModel, {
31
+ foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
32
+ as: 'bankAccDAcademicCal',
33
+ });
30
34
  }
31
35
  }
32
36
  exports.BankAccountDetailsModel = BankAccountDetailsModel;
@@ -61,6 +65,11 @@ BankAccountDetailsModel.init({
61
65
  type: sequelize_1.DataTypes.UUID,
62
66
  allowNull: false,
63
67
  },
68
+ academicCalendarId: {
69
+ type: sequelize_1.DataTypes.UUID,
70
+ field: 'academic_calendar_id',
71
+ allowNull: true,
72
+ },
64
73
  status: {
65
74
  type: sequelize_1.DataTypes.ENUM,
66
75
  values: Object.values(app_1.COMMAN_STATUS),
@@ -8,6 +8,7 @@ export declare class BatchSubjectBookAssessmentModel extends Model<IBatchSubject
8
8
  standardId: string;
9
9
  assessmentType: string;
10
10
  instituteId?: string;
11
+ academicCalendarId?: string;
11
12
  createdBy: string;
12
13
  updatedBy: string;
13
14
  deletedBy: string;
@@ -5,7 +5,7 @@ const sequelize_1 = require("sequelize");
5
5
  const index_1 = require("./index");
6
6
  class BatchSubjectBookAssessmentModel extends sequelize_1.Model {
7
7
  static associate(models) {
8
- const { InstituteModel, UserModel, BatchModel, TypeManagementModel, InstituteEntityModel, } = models;
8
+ const { InstituteModel, UserModel, BatchModel, TypeManagementModel, InstituteEntityModel, AcademicCalendarModel, } = models;
9
9
  BatchSubjectBookAssessmentModel.belongsTo(InstituteModel, {
10
10
  foreignKey: { name: 'instituteId', field: 'institute_id' },
11
11
  as: 'subjectBookAssessmentInstitute',
@@ -58,6 +58,10 @@ class BatchSubjectBookAssessmentModel extends sequelize_1.Model {
58
58
  foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
59
59
  as: 'deletedByUser',
60
60
  });
61
+ BatchSubjectBookAssessmentModel.belongsTo(AcademicCalendarModel, {
62
+ foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
63
+ as: 'batchSubBAAcaCal',
64
+ });
61
65
  }
62
66
  }
63
67
  exports.BatchSubjectBookAssessmentModel = BatchSubjectBookAssessmentModel;
@@ -93,6 +97,11 @@ BatchSubjectBookAssessmentModel.init({
93
97
  allowNull: true,
94
98
  field: 'institute_id',
95
99
  },
100
+ academicCalendarId: {
101
+ type: sequelize_1.DataTypes.UUID,
102
+ field: 'academic_calendar_id',
103
+ allowNull: true,
104
+ },
96
105
  }, {
97
106
  modelName: 'BatchSubjectBookAssessmentModel',
98
107
  tableName: 'batch_subject_book_assessments',