@kipicore/dbcore 1.1.121 → 1.1.123

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 (253) hide show
  1. package/dist/constants/app.d.ts +2 -1
  2. package/dist/constants/app.js +2 -1
  3. package/dist/constants/errorMessages.d.ts +7 -0
  4. package/dist/constants/errorMessages.js +9 -1
  5. package/dist/constants/successMessages.d.ts +6 -0
  6. package/dist/constants/successMessages.js +8 -1
  7. package/dist/db/psql/migrations/20251201085926-add_academicCalenderId_to_announcement.d.ts +2 -0
  8. package/dist/db/psql/migrations/20251201085926-add_academicCalenderId_to_announcement.js +23 -0
  9. package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.d.ts +2 -0
  10. package/dist/db/psql/migrations/20251201090537-add_academicCalenderId_to_userHasAnnouncement.js +23 -0
  11. package/dist/db/psql/migrations/20251201092621-add_academicCalenderId_to_UHBatch.d.ts +2 -0
  12. package/dist/db/psql/migrations/20251201092621-add_academicCalenderId_to_UHBatch.js +23 -0
  13. package/dist/db/psql/migrations/20251201093210-add_academicCalenderId_to_classroom.d.ts +2 -0
  14. package/dist/db/psql/migrations/20251201093210-add_academicCalenderId_to_classroom.js +23 -0
  15. package/dist/db/psql/migrations/20251201093644-add_academicCalenderId_to_BankAccD.d.ts +2 -0
  16. package/dist/db/psql/migrations/20251201093644-add_academicCalenderId_to_BankAccD.js +23 -0
  17. package/dist/db/psql/migrations/20251201094148-add_academicCalenderId_to_workingD.d.ts +2 -0
  18. package/dist/db/psql/migrations/20251201094148-add_academicCalenderId_to_workingD.js +23 -0
  19. package/dist/db/psql/migrations/20251201094533-add_academicCalenderId_to_workingS.d.ts +2 -0
  20. package/dist/db/psql/migrations/20251201094533-add_academicCalenderId_to_workingS.js +23 -0
  21. package/dist/db/psql/migrations/20251201094828-add-academic-calendar-id-to-userhashomework.d.ts +2 -0
  22. package/dist/db/psql/migrations/20251201094828-add-academic-calendar-id-to-userhashomework.js +23 -0
  23. package/dist/db/psql/migrations/20251201095025-add_academicCalenderId_to_batchSubBookA.d.ts +2 -0
  24. package/dist/db/psql/migrations/20251201095025-add_academicCalenderId_to_batchSubBookA.js +23 -0
  25. package/dist/db/psql/migrations/20251201095408-add_academicCalenderId_to_batchSubProA.d.ts +2 -0
  26. package/dist/db/psql/migrations/20251201095408-add_academicCalenderId_to_batchSubProA.js +23 -0
  27. package/dist/db/psql/migrations/20251201100111-add_academicCalenderId_to_projectAOp.d.ts +2 -0
  28. package/dist/db/psql/migrations/20251201100111-add_academicCalenderId_to_projectAOp.js +23 -0
  29. package/dist/db/psql/migrations/20251201100553-add-academic-calendar-id-to-homework.d.ts +2 -0
  30. package/dist/db/psql/migrations/20251201100553-add-academic-calendar-id-to-homework.js +23 -0
  31. package/dist/db/psql/migrations/20251201100901-add_academicCalenderId_to_userHRollN.d.ts +2 -0
  32. package/dist/db/psql/migrations/20251201100901-add_academicCalenderId_to_userHRollN.js +23 -0
  33. package/dist/db/psql/migrations/20251201101407-add_academicCalenderId_to_feeHistory.d.ts +2 -0
  34. package/dist/db/psql/migrations/20251201101407-add_academicCalenderId_to_feeHistory.js +23 -0
  35. package/dist/db/psql/migrations/20251201102129-add_academicCalenderId_to_feeReminder.d.ts +2 -0
  36. package/dist/db/psql/migrations/20251201102129-add_academicCalenderId_to_feeReminder.js +23 -0
  37. package/dist/db/psql/migrations/20251201102622-add_academicCalenderId_to_paymentTerms.d.ts +2 -0
  38. package/dist/db/psql/migrations/20251201102622-add_academicCalenderId_to_paymentTerms.js +23 -0
  39. package/dist/db/psql/migrations/20251201103134-add_academicCalenderId_to_subjectHFee.d.ts +2 -0
  40. package/dist/db/psql/migrations/20251201103134-add_academicCalenderId_to_subjectHFee.js +23 -0
  41. package/dist/db/psql/migrations/20251201103447-add_academicCalenderId_to_lectureHistory.d.ts +2 -0
  42. package/dist/db/psql/migrations/20251201103447-add_academicCalenderId_to_lectureHistory.js +23 -0
  43. package/dist/db/psql/migrations/20251201103551-add-academic-calendar-id-to-greetings.d.ts +2 -0
  44. package/dist/db/psql/migrations/20251201103551-add-academic-calendar-id-to-greetings.js +23 -0
  45. package/dist/db/psql/migrations/20251201104336-add_academicCalenderId_to_lecture.d.ts +2 -0
  46. package/dist/db/psql/migrations/20251201104336-add_academicCalenderId_to_lecture.js +23 -0
  47. package/dist/db/psql/migrations/20251202041045-add_academic_Cal_masterL.d.ts +2 -0
  48. package/dist/db/psql/migrations/20251202041045-add_academic_Cal_masterL.js +21 -0
  49. package/dist/db/psql/migrations/20251202042541-add_academic_Cal_offer.d.ts +2 -0
  50. package/dist/db/psql/migrations/20251202042541-add_academic_Cal_offer.js +21 -0
  51. package/dist/db/psql/migrations/20251202042809-add-academic-calendar-id-to-schoolOffer.d.ts +2 -0
  52. package/dist/db/psql/migrations/20251202042809-add-academic-calendar-id-to-schoolOffer.js +23 -0
  53. package/dist/db/psql/migrations/20251202043001-add_academic_Cal_userHOffer.d.ts +2 -0
  54. package/dist/db/psql/migrations/20251202043001-add_academic_Cal_userHOffer.js +21 -0
  55. package/dist/db/psql/migrations/20251202043722-add_academic_Cal_pdcCheque.d.ts +2 -0
  56. package/dist/db/psql/migrations/20251202043722-add_academic_Cal_pdcCheque.js +21 -0
  57. package/dist/db/psql/migrations/20251202044220-add_academic_Cal_pdcChequeHistory.d.ts +2 -0
  58. package/dist/db/psql/migrations/20251202044220-add_academic_Cal_pdcChequeHistory.js +21 -0
  59. package/dist/db/psql/migrations/20251204101602-add_academic_cal_slot.d.ts +2 -0
  60. package/dist/db/psql/migrations/20251204101602-add_academic_cal_slot.js +21 -0
  61. package/dist/db/psql/migrations/20251204102512-add_academic_cal_syllabus.d.ts +2 -0
  62. package/dist/db/psql/migrations/20251204102512-add_academic_cal_syllabus.js +21 -0
  63. package/dist/db/psql/migrations/20251204103002-add_academic_cal_testimonial.d.ts +2 -0
  64. package/dist/db/psql/migrations/20251204103002-add_academic_cal_testimonial.js +21 -0
  65. package/dist/db/psql/migrations/20251204103254-add_academic_cal_trip.d.ts +2 -0
  66. package/dist/db/psql/migrations/20251204103254-add_academic_cal_trip.js +21 -0
  67. package/dist/db/psql/migrations/20251204103624-add_academic_cal_userBA.d.ts +2 -0
  68. package/dist/db/psql/migrations/20251204103624-add_academic_cal_userBA.js +21 -0
  69. package/dist/db/psql/migrations/20251204104027-add_academic_cal_userFeeType.d.ts +2 -0
  70. package/dist/db/psql/migrations/20251204104027-add_academic_cal_userFeeType.js +21 -0
  71. package/dist/db/psql/migrations/20251204104738-add_academic_cal_userHInventory.d.ts +2 -0
  72. package/dist/db/psql/migrations/20251204104738-add_academic_cal_userHInventory.js +21 -0
  73. package/dist/db/psql/migrations/20251204105047-add_academic_cal_userHInvenH.d.ts +2 -0
  74. package/dist/db/psql/migrations/20251204105047-add_academic_cal_userHInvenH.js +21 -0
  75. package/dist/db/psql/migrations/20251204105717-add_academic_cal_userHLeave.d.ts +2 -0
  76. package/dist/db/psql/migrations/20251204105717-add_academic_cal_userHLeave.js +21 -0
  77. package/dist/db/psql/migrations/20251204110256-add_academic_cal_userHLH.d.ts +2 -0
  78. package/dist/db/psql/migrations/20251204110256-add_academic_cal_userHLH.js +21 -0
  79. package/dist/db/psql/migrations/20251204110629-add_academic_cal_userLeaveReq.d.ts +2 -0
  80. package/dist/db/psql/migrations/20251204110629-add_academic_cal_userLeaveReq.js +21 -0
  81. package/dist/db/psql/migrations/20251204110928-add_academic_cal_userproAssessOp.d.ts +2 -0
  82. package/dist/db/psql/migrations/20251204110928-add_academic_cal_userproAssessOp.js +21 -0
  83. package/dist/db/psql/migrations/20251204112518-add_batchId_type_subHFee.d.ts +2 -0
  84. package/dist/db/psql/migrations/20251204112518-add_batchId_type_subHFee.js +31 -0
  85. package/dist/db/psql/migrations/20251208110114-add-thumbnail-introvideo-to-courses.d.ts +2 -0
  86. package/dist/db/psql/migrations/20251208110114-add-thumbnail-introvideo-to-courses.js +31 -0
  87. package/dist/interfaces/announcementInterface.d.ts +1 -0
  88. package/dist/interfaces/approvalRequestInterface.d.ts +1 -0
  89. package/dist/interfaces/attendanceInterface.d.ts +1 -0
  90. package/dist/interfaces/bDayWishInterface.d.ts +1 -0
  91. package/dist/interfaces/bankAccountDetailsInterface.d.ts +1 -0
  92. package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -0
  93. package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -0
  94. package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -0
  95. package/dist/interfaces/certificatesManagementInterface.d.ts +1 -0
  96. package/dist/interfaces/classRoomInterface.d.ts +1 -0
  97. package/dist/interfaces/courseInterface.d.ts +2 -0
  98. package/dist/interfaces/dailyBookInterface.d.ts +1 -0
  99. package/dist/interfaces/eventInterface.d.ts +1 -0
  100. package/dist/interfaces/examGroupInterface.d.ts +1 -0
  101. package/dist/interfaces/examHasAnswerSheetInterface.d.ts +1 -0
  102. package/dist/interfaces/examInterface.d.ts +1 -0
  103. package/dist/interfaces/feeHistoryInterface.d.ts +1 -0
  104. package/dist/interfaces/feeReminderInterface.d.ts +1 -0
  105. package/dist/interfaces/feeReminderTypeInterface.d.ts +1 -0
  106. package/dist/interfaces/feeTypeInterface.d.ts +1 -0
  107. package/dist/interfaces/fileUploadUserDetailsInterface.d.ts +2 -2
  108. package/dist/interfaces/generateIdCardInterface.d.ts +1 -0
  109. package/dist/interfaces/greetingsInterface.d.ts +1 -0
  110. package/dist/interfaces/holidayInterface.d.ts +1 -0
  111. package/dist/interfaces/homeworkInterface.d.ts +1 -0
  112. package/dist/interfaces/index.d.ts +1 -0
  113. package/dist/interfaces/index.js +1 -0
  114. package/dist/interfaces/lectureHistoryInterface.d.ts +1 -0
  115. package/dist/interfaces/lectureInterface.d.ts +1 -0
  116. package/dist/interfaces/masterLeaveInterface.d.ts +1 -0
  117. package/dist/interfaces/offersInterface.d.ts +1 -0
  118. package/dist/interfaces/paymentTermsInterface.d.ts +1 -0
  119. package/dist/interfaces/pdcChequeInterface.d.ts +1 -0
  120. package/dist/interfaces/pdcHistoryInterface.d.ts +1 -0
  121. package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -0
  122. package/dist/interfaces/replaceTeacherInterface.d.ts +1 -0
  123. package/dist/interfaces/schoolFeeInterface.d.ts +1 -0
  124. package/dist/interfaces/schoolOfferInterface.d.ts +1 -0
  125. package/dist/interfaces/sheetFieldInterface.d.ts +8 -0
  126. package/dist/interfaces/sheetFieldInterface.js +2 -0
  127. package/dist/interfaces/slotInterface.d.ts +1 -0
  128. package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
  129. package/dist/interfaces/syllabusInterface.d.ts +1 -0
  130. package/dist/interfaces/taskManagementInterface.d.ts +1 -0
  131. package/dist/interfaces/testimonialInterface.d.ts +1 -0
  132. package/dist/interfaces/tripInterface.d.ts +1 -0
  133. package/dist/interfaces/userBookAssessmentInterface.d.ts +1 -0
  134. package/dist/interfaces/userFeeTypeInterface.d.ts +1 -0
  135. package/dist/interfaces/userHasAnnouncementInterface.d.ts +1 -0
  136. package/dist/interfaces/userHasBatchInterface.d.ts +1 -0
  137. package/dist/interfaces/userHasHomeWorkInterface.d.ts +1 -0
  138. package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +1 -0
  139. package/dist/interfaces/userHasInventoryInterface.d.ts +1 -0
  140. package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +1 -0
  141. package/dist/interfaces/userHasLeaveInterface.d.ts +1 -0
  142. package/dist/interfaces/userHasOfferInterface.d.ts +1 -0
  143. package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -0
  144. package/dist/interfaces/userInstituteMetaInterface.d.ts +1 -0
  145. package/dist/interfaces/userLeaveRequestInterface.d.ts +1 -0
  146. package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +1 -0
  147. package/dist/interfaces/workingDayInterface.d.ts +1 -0
  148. package/dist/interfaces/workingShiftInterface.d.ts +1 -0
  149. package/dist/models/mongodb/approvalRequestModel.js +4 -0
  150. package/dist/models/mongodb/attendanceModel.js +4 -0
  151. package/dist/models/mongodb/bDayWishModel.js +1 -0
  152. package/dist/models/mongodb/certificatesHistoryModel.js +4 -0
  153. package/dist/models/mongodb/certificatesManagementModel.js +4 -0
  154. package/dist/models/mongodb/dailyBookModel.js +4 -0
  155. package/dist/models/mongodb/eventModel.js +4 -0
  156. package/dist/models/mongodb/examGroupModel.js +4 -0
  157. package/dist/models/mongodb/examHasAnswerSheetModel.js +4 -0
  158. package/dist/models/mongodb/examModel.js +4 -0
  159. package/dist/models/mongodb/feeReminderTypeModel.js +4 -0
  160. package/dist/models/mongodb/fileUploadUserDetailsModel.js +3 -3
  161. package/dist/models/mongodb/generateIdCardModel.js +4 -0
  162. package/dist/models/mongodb/holidayModel.js +4 -0
  163. package/dist/models/mongodb/index.d.ts +1 -0
  164. package/dist/models/mongodb/index.js +3 -1
  165. package/dist/models/mongodb/replaceTeacherModel.js +4 -0
  166. package/dist/models/mongodb/schoolFeeModel.js +4 -0
  167. package/dist/models/mongodb/sheetFieldModel.d.ts +4 -0
  168. package/dist/models/mongodb/sheetFieldModel.js +52 -0
  169. package/dist/models/mongodb/taskManagementModel.js +4 -0
  170. package/dist/models/mongodb/userInstituteMetaModel.js +4 -0
  171. package/dist/models/psql/announcementModel.d.ts +1 -0
  172. package/dist/models/psql/announcementModel.js +14 -1
  173. package/dist/models/psql/bankAccountDetailsModel.d.ts +1 -0
  174. package/dist/models/psql/bankAccountDetailsModel.js +10 -1
  175. package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +1 -0
  176. package/dist/models/psql/batchSubjectBookAssessmentModel.js +10 -1
  177. package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +1 -0
  178. package/dist/models/psql/batchSubjectProjectAssessmentModel.js +10 -1
  179. package/dist/models/psql/classRoomModel.d.ts +1 -0
  180. package/dist/models/psql/classRoomModel.js +20 -1
  181. package/dist/models/psql/courseModel.d.ts +2 -0
  182. package/dist/models/psql/courseModel.js +27 -1
  183. package/dist/models/psql/feeHistoryModel.d.ts +1 -0
  184. package/dist/models/psql/feeHistoryModel.js +9 -1
  185. package/dist/models/psql/feeReminderModel.d.ts +1 -0
  186. package/dist/models/psql/feeReminderModel.js +14 -1
  187. package/dist/models/psql/feeTypeModel.d.ts +1 -0
  188. package/dist/models/psql/feeTypeModel.js +14 -1
  189. package/dist/models/psql/greetingsModel.d.ts +1 -0
  190. package/dist/models/psql/greetingsModel.js +14 -1
  191. package/dist/models/psql/homeWorkModel.d.ts +1 -0
  192. package/dist/models/psql/homeWorkModel.js +14 -1
  193. package/dist/models/psql/lectureHistoryModel.d.ts +1 -0
  194. package/dist/models/psql/lectureHistoryModel.js +14 -1
  195. package/dist/models/psql/lectureModel.d.ts +1 -0
  196. package/dist/models/psql/lectureModel.js +14 -1
  197. package/dist/models/psql/masterLeaveModel.d.ts +1 -0
  198. package/dist/models/psql/masterLeaveModel.js +14 -1
  199. package/dist/models/psql/offerModel.d.ts +1 -0
  200. package/dist/models/psql/offerModel.js +13 -1
  201. package/dist/models/psql/paymentTermsModel.d.ts +1 -0
  202. package/dist/models/psql/paymentTermsModel.js +14 -1
  203. package/dist/models/psql/pdcChequeModel.d.ts +1 -0
  204. package/dist/models/psql/pdcChequeModel.js +14 -1
  205. package/dist/models/psql/pdcHistoryModel.d.ts +1 -0
  206. package/dist/models/psql/pdcHistoryModel.js +14 -1
  207. package/dist/models/psql/projectAssessmentOptionModel.d.ts +1 -0
  208. package/dist/models/psql/projectAssessmentOptionModel.js +10 -1
  209. package/dist/models/psql/schoolOfferModel.d.ts +1 -0
  210. package/dist/models/psql/schoolOfferModel.js +14 -1
  211. package/dist/models/psql/slotModel.d.ts +1 -0
  212. package/dist/models/psql/slotModel.js +14 -1
  213. package/dist/models/psql/subjectHasFeeModel.js +3 -3
  214. package/dist/models/psql/syllabusModel.d.ts +1 -0
  215. package/dist/models/psql/syllabusModel.js +14 -1
  216. package/dist/models/psql/testimonialModel.d.ts +1 -0
  217. package/dist/models/psql/testimonialModel.js +14 -1
  218. package/dist/models/psql/tripModel.d.ts +1 -0
  219. package/dist/models/psql/tripModel.js +14 -1
  220. package/dist/models/psql/userBookAssessmentModel.d.ts +1 -0
  221. package/dist/models/psql/userBookAssessmentModel.js +14 -1
  222. package/dist/models/psql/userFeeTypeModel.js +14 -1
  223. package/dist/models/psql/userHasAnnouncementModel.d.ts +1 -0
  224. package/dist/models/psql/userHasAnnouncementModel.js +14 -1
  225. package/dist/models/psql/userHasBatchModel.d.ts +1 -0
  226. package/dist/models/psql/userHasBatchModel.js +20 -1
  227. package/dist/models/psql/userHasHomeWorkModel.d.ts +1 -0
  228. package/dist/models/psql/userHasHomeWorkModel.js +14 -1
  229. package/dist/models/psql/userHasInventoryHistoryModel.d.ts +1 -0
  230. package/dist/models/psql/userHasInventoryHistoryModel.js +14 -1
  231. package/dist/models/psql/userHasInventoryModel.d.ts +1 -0
  232. package/dist/models/psql/userHasInventoryModel.js +14 -1
  233. package/dist/models/psql/userHasLeaveHistoryModel.d.ts +1 -0
  234. package/dist/models/psql/userHasLeaveHistoryModel.js +14 -1
  235. package/dist/models/psql/userHasLeaveModel.d.ts +1 -0
  236. package/dist/models/psql/userHasLeaveModel.js +14 -1
  237. package/dist/models/psql/userHasOfferModel.d.ts +1 -0
  238. package/dist/models/psql/userHasOfferModel.js +13 -1
  239. package/dist/models/psql/userHasRollNumberModel.d.ts +1 -0
  240. package/dist/models/psql/userHasRollNumberModel.js +14 -1
  241. package/dist/models/psql/userLeaveRequestModel.d.ts +1 -0
  242. package/dist/models/psql/userLeaveRequestModel.js +14 -1
  243. package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +1 -0
  244. package/dist/models/psql/userProjectAssessmentOptionModel.js +14 -1
  245. package/dist/models/psql/workingDayModel.d.ts +1 -0
  246. package/dist/models/psql/workingDayModel.js +10 -1
  247. package/dist/models/psql/workingShiftModel.d.ts +1 -0
  248. package/dist/models/psql/workingShiftModel.js +10 -1
  249. package/dist/types/index.d.ts +1 -0
  250. package/dist/types/index.js +1 -0
  251. package/dist/types/sheetFieldType.d.ts +2 -0
  252. package/dist/types/sheetFieldType.js +2 -0
  253. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('greeting');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('greeting', 'academic_calendar_id', {
7
+ type: Sequelize.UUID,
8
+ allowNull: true,
9
+ field: 'academic_calendar_id',
10
+ });
11
+ }
12
+ };
13
+ const down = async (queryInterface, Sequelize) => {
14
+ const table = await queryInterface.describeTable('greeting');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('greeting', 'academic_calendar_id');
18
+ }
19
+ };
20
+ module.exports = {
21
+ up,
22
+ down,
23
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('lectures');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('lectures', 'academic_calendar_id', {
7
+ type: Sequelize.UUID,
8
+ allowNull: true,
9
+ field: 'academic_calendar_id',
10
+ });
11
+ }
12
+ };
13
+ const down = async (queryInterface, Sequelize) => {
14
+ const table = await queryInterface.describeTable('lectures');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('lectures', 'academic_calendar_id');
18
+ }
19
+ };
20
+ module.exports = {
21
+ up,
22
+ down,
23
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('master_leaves');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('master_leaves', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('master_leaves');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('master_leaves', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('offers');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('offers', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('offers');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('offers', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('school_offers');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('school_offers', 'academic_calendar_id', {
7
+ type: Sequelize.UUID,
8
+ allowNull: true,
9
+ field: 'academic_calendar_id',
10
+ });
11
+ }
12
+ };
13
+ const down = async (queryInterface, Sequelize) => {
14
+ const table = await queryInterface.describeTable('school_offers');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('school_offers', 'academic_calendar_id');
18
+ }
19
+ };
20
+ module.exports = {
21
+ up,
22
+ down,
23
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_has_offers');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_has_offers', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_has_offers');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_has_offers', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('pdcCheques');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('pdcCheques', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('pdcCheques');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('pdcCheques', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('pdc_history');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('pdc_history', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('pdc_history');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('pdc_history', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('slots');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('slots', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('slots');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('slots', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('syllabus');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('syllabus', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('syllabus');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('syllabus', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('testimonials');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('testimonials', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('testimonials');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('testimonials', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('trips');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('trips', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('trips');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('trips', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_book_assessments');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_book_assessments', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_book_assessments');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_book_assessments', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_fee_types');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_fee_types', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_fee_types');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_fee_types', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_has_inventory');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_has_inventory', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_has_inventory');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_has_inventory', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_has_inventory_history');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_has_inventory_history', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_has_inventory_history');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_has_inventory_history', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_has_leave');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_has_leave', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_has_leave');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_has_leave', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_has_leave_history');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_has_leave_history', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_has_leave_history');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_has_leave_history', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_leave_request');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_leave_request', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_leave_request');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_leave_request', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('user_project_assessment_options');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('user_project_assessment_options', 'academic_calendar_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'academic_calendar_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface, Sequelize) => {
13
+ const table = await queryInterface.describeTable('user_project_assessment_options');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('user_project_assessment_options', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('subject_has_fee');
4
+ if (!table.batch_id) {
5
+ await queryInterface.addColumn('subject_has_fee', 'batch_id', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'batch_id',
9
+ });
10
+ }
11
+ if (!table.batch_type) {
12
+ await queryInterface.addColumn('subject_has_fee', 'batch_type', {
13
+ type: Sequelize.UUID,
14
+ allowNull: true,
15
+ field: 'batch_type',
16
+ });
17
+ }
18
+ };
19
+ const down = async (queryInterface, Sequelize) => {
20
+ const table = await queryInterface.describeTable('subject_has_fee');
21
+ if (table.batch_id) {
22
+ await queryInterface.removeColumn('subject_has_fee', 'batch_id');
23
+ }
24
+ if (table.batch_type) {
25
+ await queryInterface.removeColumn('subject_has_fee', 'batch_type');
26
+ }
27
+ };
28
+ module.exports = {
29
+ up,
30
+ down,
31
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('courses');
4
+ if (!table.thumb_nail) {
5
+ await queryInterface.addColumn('courses', 'thumb_nail', {
6
+ type: Sequelize.UUID,
7
+ allowNull: true,
8
+ field: 'thumb_nail',
9
+ });
10
+ }
11
+ if (!table.intro_video) {
12
+ await queryInterface.addColumn('courses', 'intro_video', {
13
+ type: Sequelize.UUID,
14
+ allowNull: true,
15
+ field: 'intro_video',
16
+ });
17
+ }
18
+ };
19
+ const down = async (queryInterface, Sequelize) => {
20
+ const table = await queryInterface.describeTable('courses');
21
+ if (table.thumb_nail) {
22
+ await queryInterface.removeColumn('courses', 'thumb_nail');
23
+ }
24
+ if (table.intro_video) {
25
+ await queryInterface.removeColumn('courses', 'intro_video');
26
+ }
27
+ };
28
+ module.exports = {
29
+ up,
30
+ down,
31
+ };
@@ -16,4 +16,5 @@ export interface IAnnouncementModelAttributes extends IDefaultAttributes {
16
16
  fileStorageId?: string;
17
17
  link?: string;
18
18
  entityIds?: string[];
19
+ academicCalendarId?: string;
19
20
  }
@@ -11,4 +11,5 @@ export interface IApproveRequestModelAttributes extends IDefaultAttributes, Docu
11
11
  reason?: string;
12
12
  rejectDate?: Date;
13
13
  approveDate?: Date;
14
+ academicCalendarId?: string;
14
15
  }
@@ -18,4 +18,5 @@ export interface IAttendanceModelAttributes extends IDefaultAttributes, Document
18
18
  batchId?: string;
19
19
  lectureId?: string;
20
20
  slotId?: string;
21
+ academicCalendarId?: string;
21
22
  }
@@ -11,4 +11,5 @@ export interface IBDayWishModelAttributes extends IDefaultAttributes, Document {
11
11
  userId: string;
12
12
  userIds: IUserList[];
13
13
  instituteId: string;
14
+ academicCalendarId?: string;
14
15
  }
@@ -11,4 +11,5 @@ export interface IBankAccountDetailsInterfaceModelAttributes extends IDefaultAtt
11
11
  status: COMMAN_STATUS;
12
12
  isDefault: BOOLEAN_STATUS;
13
13
  isSelfAccount: BOOLEAN_STATUS;
14
+ academicCalendarId?: string;
14
15
  }