@kipicore/dbcore 1.1.122 → 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 (233) 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/interfaces/announcementInterface.d.ts +1 -0
  82. package/dist/interfaces/approvalRequestInterface.d.ts +1 -0
  83. package/dist/interfaces/attendanceInterface.d.ts +1 -0
  84. package/dist/interfaces/bDayWishInterface.d.ts +1 -0
  85. package/dist/interfaces/bankAccountDetailsInterface.d.ts +1 -0
  86. package/dist/interfaces/batchSubjectBookAssessmentInterface.d.ts +1 -0
  87. package/dist/interfaces/batchSubjectProjectAssessmentInterface.d.ts +1 -0
  88. package/dist/interfaces/certificatesHistoryInterface.d.ts +1 -0
  89. package/dist/interfaces/certificatesManagementInterface.d.ts +1 -0
  90. package/dist/interfaces/classRoomInterface.d.ts +1 -0
  91. package/dist/interfaces/courseInterface.d.ts +2 -0
  92. package/dist/interfaces/dailyBookInterface.d.ts +1 -0
  93. package/dist/interfaces/eventInterface.d.ts +1 -0
  94. package/dist/interfaces/examGroupInterface.d.ts +1 -0
  95. package/dist/interfaces/examHasAnswerSheetInterface.d.ts +1 -0
  96. package/dist/interfaces/examInterface.d.ts +1 -0
  97. package/dist/interfaces/feeHistoryInterface.d.ts +1 -0
  98. package/dist/interfaces/feeReminderInterface.d.ts +1 -0
  99. package/dist/interfaces/feeReminderTypeInterface.d.ts +1 -0
  100. package/dist/interfaces/feeTypeInterface.d.ts +1 -0
  101. package/dist/interfaces/generateIdCardInterface.d.ts +1 -0
  102. package/dist/interfaces/greetingsInterface.d.ts +1 -0
  103. package/dist/interfaces/holidayInterface.d.ts +1 -0
  104. package/dist/interfaces/homeworkInterface.d.ts +1 -0
  105. package/dist/interfaces/lectureHistoryInterface.d.ts +1 -0
  106. package/dist/interfaces/lectureInterface.d.ts +1 -0
  107. package/dist/interfaces/masterLeaveInterface.d.ts +1 -0
  108. package/dist/interfaces/offersInterface.d.ts +1 -0
  109. package/dist/interfaces/paymentTermsInterface.d.ts +1 -0
  110. package/dist/interfaces/pdcChequeInterface.d.ts +1 -0
  111. package/dist/interfaces/pdcHistoryInterface.d.ts +1 -0
  112. package/dist/interfaces/projectAssessmentOptionInterface.d.ts +1 -0
  113. package/dist/interfaces/replaceTeacherInterface.d.ts +1 -0
  114. package/dist/interfaces/schoolFeeInterface.d.ts +1 -0
  115. package/dist/interfaces/schoolOfferInterface.d.ts +1 -0
  116. package/dist/interfaces/slotInterface.d.ts +1 -0
  117. package/dist/interfaces/subjectHasFeeInterface.d.ts +1 -1
  118. package/dist/interfaces/syllabusInterface.d.ts +1 -0
  119. package/dist/interfaces/taskManagementInterface.d.ts +1 -0
  120. package/dist/interfaces/testimonialInterface.d.ts +1 -0
  121. package/dist/interfaces/tripInterface.d.ts +1 -0
  122. package/dist/interfaces/userBookAssessmentInterface.d.ts +1 -0
  123. package/dist/interfaces/userFeeTypeInterface.d.ts +1 -0
  124. package/dist/interfaces/userHasAnnouncementInterface.d.ts +1 -0
  125. package/dist/interfaces/userHasBatchInterface.d.ts +1 -0
  126. package/dist/interfaces/userHasHomeWorkInterface.d.ts +1 -0
  127. package/dist/interfaces/userHasInventoryHistoryInterface.d.ts +1 -0
  128. package/dist/interfaces/userHasInventoryInterface.d.ts +1 -0
  129. package/dist/interfaces/userHasLeaveHistoryInterface.d.ts +1 -0
  130. package/dist/interfaces/userHasLeaveInterface.d.ts +1 -0
  131. package/dist/interfaces/userHasOfferInterface.d.ts +1 -0
  132. package/dist/interfaces/userHasRollNumberInterface.d.ts +1 -0
  133. package/dist/interfaces/userInstituteMetaInterface.d.ts +1 -0
  134. package/dist/interfaces/userLeaveRequestInterface.d.ts +1 -0
  135. package/dist/interfaces/userProjectAssessmentOptionInterface.d.ts +1 -0
  136. package/dist/interfaces/workingDayInterface.d.ts +1 -0
  137. package/dist/interfaces/workingShiftInterface.d.ts +1 -0
  138. package/dist/models/mongodb/approvalRequestModel.js +4 -0
  139. package/dist/models/mongodb/attendanceModel.js +4 -0
  140. package/dist/models/mongodb/bDayWishModel.js +1 -0
  141. package/dist/models/mongodb/certificatesHistoryModel.js +4 -0
  142. package/dist/models/mongodb/certificatesManagementModel.js +4 -0
  143. package/dist/models/mongodb/dailyBookModel.js +4 -0
  144. package/dist/models/mongodb/eventModel.js +4 -0
  145. package/dist/models/mongodb/examGroupModel.js +4 -0
  146. package/dist/models/mongodb/examHasAnswerSheetModel.js +4 -0
  147. package/dist/models/mongodb/examModel.js +4 -0
  148. package/dist/models/mongodb/feeReminderTypeModel.js +4 -0
  149. package/dist/models/mongodb/generateIdCardModel.js +4 -0
  150. package/dist/models/mongodb/holidayModel.js +4 -0
  151. package/dist/models/mongodb/replaceTeacherModel.js +4 -0
  152. package/dist/models/mongodb/schoolFeeModel.js +4 -0
  153. package/dist/models/mongodb/taskManagementModel.js +4 -0
  154. package/dist/models/mongodb/userInstituteMetaModel.js +4 -0
  155. package/dist/models/psql/announcementModel.d.ts +1 -0
  156. package/dist/models/psql/announcementModel.js +14 -1
  157. package/dist/models/psql/bankAccountDetailsModel.d.ts +1 -0
  158. package/dist/models/psql/bankAccountDetailsModel.js +10 -1
  159. package/dist/models/psql/batchSubjectBookAssessmentModel.d.ts +1 -0
  160. package/dist/models/psql/batchSubjectBookAssessmentModel.js +10 -1
  161. package/dist/models/psql/batchSubjectProjectAssessmentModel.d.ts +1 -0
  162. package/dist/models/psql/batchSubjectProjectAssessmentModel.js +10 -1
  163. package/dist/models/psql/classRoomModel.d.ts +1 -0
  164. package/dist/models/psql/classRoomModel.js +20 -1
  165. package/dist/models/psql/courseModel.d.ts +2 -0
  166. package/dist/models/psql/courseModel.js +27 -1
  167. package/dist/models/psql/feeHistoryModel.d.ts +1 -0
  168. package/dist/models/psql/feeHistoryModel.js +9 -1
  169. package/dist/models/psql/feeReminderModel.d.ts +1 -0
  170. package/dist/models/psql/feeReminderModel.js +14 -1
  171. package/dist/models/psql/feeTypeModel.d.ts +1 -0
  172. package/dist/models/psql/feeTypeModel.js +14 -1
  173. package/dist/models/psql/greetingsModel.d.ts +1 -0
  174. package/dist/models/psql/greetingsModel.js +14 -1
  175. package/dist/models/psql/homeWorkModel.d.ts +1 -0
  176. package/dist/models/psql/homeWorkModel.js +14 -1
  177. package/dist/models/psql/lectureHistoryModel.d.ts +1 -0
  178. package/dist/models/psql/lectureHistoryModel.js +14 -1
  179. package/dist/models/psql/lectureModel.d.ts +1 -0
  180. package/dist/models/psql/lectureModel.js +14 -1
  181. package/dist/models/psql/masterLeaveModel.d.ts +1 -0
  182. package/dist/models/psql/masterLeaveModel.js +14 -1
  183. package/dist/models/psql/offerModel.d.ts +1 -0
  184. package/dist/models/psql/offerModel.js +13 -1
  185. package/dist/models/psql/paymentTermsModel.d.ts +1 -0
  186. package/dist/models/psql/paymentTermsModel.js +14 -1
  187. package/dist/models/psql/pdcChequeModel.d.ts +1 -0
  188. package/dist/models/psql/pdcChequeModel.js +14 -1
  189. package/dist/models/psql/pdcHistoryModel.d.ts +1 -0
  190. package/dist/models/psql/pdcHistoryModel.js +14 -1
  191. package/dist/models/psql/projectAssessmentOptionModel.d.ts +1 -0
  192. package/dist/models/psql/projectAssessmentOptionModel.js +10 -1
  193. package/dist/models/psql/schoolOfferModel.d.ts +1 -0
  194. package/dist/models/psql/schoolOfferModel.js +14 -1
  195. package/dist/models/psql/slotModel.d.ts +1 -0
  196. package/dist/models/psql/slotModel.js +14 -1
  197. package/dist/models/psql/subjectHasFeeModel.js +3 -3
  198. package/dist/models/psql/syllabusModel.d.ts +1 -0
  199. package/dist/models/psql/syllabusModel.js +14 -1
  200. package/dist/models/psql/testimonialModel.d.ts +1 -0
  201. package/dist/models/psql/testimonialModel.js +14 -1
  202. package/dist/models/psql/tripModel.d.ts +1 -0
  203. package/dist/models/psql/tripModel.js +14 -1
  204. package/dist/models/psql/userBookAssessmentModel.d.ts +1 -0
  205. package/dist/models/psql/userBookAssessmentModel.js +14 -1
  206. package/dist/models/psql/userFeeTypeModel.js +14 -1
  207. package/dist/models/psql/userHasAnnouncementModel.d.ts +1 -0
  208. package/dist/models/psql/userHasAnnouncementModel.js +14 -1
  209. package/dist/models/psql/userHasBatchModel.d.ts +1 -0
  210. package/dist/models/psql/userHasBatchModel.js +20 -1
  211. package/dist/models/psql/userHasHomeWorkModel.d.ts +1 -0
  212. package/dist/models/psql/userHasHomeWorkModel.js +14 -1
  213. package/dist/models/psql/userHasInventoryHistoryModel.d.ts +1 -0
  214. package/dist/models/psql/userHasInventoryHistoryModel.js +14 -1
  215. package/dist/models/psql/userHasInventoryModel.d.ts +1 -0
  216. package/dist/models/psql/userHasInventoryModel.js +14 -1
  217. package/dist/models/psql/userHasLeaveHistoryModel.d.ts +1 -0
  218. package/dist/models/psql/userHasLeaveHistoryModel.js +14 -1
  219. package/dist/models/psql/userHasLeaveModel.d.ts +1 -0
  220. package/dist/models/psql/userHasLeaveModel.js +14 -1
  221. package/dist/models/psql/userHasOfferModel.d.ts +1 -0
  222. package/dist/models/psql/userHasOfferModel.js +13 -1
  223. package/dist/models/psql/userHasRollNumberModel.d.ts +1 -0
  224. package/dist/models/psql/userHasRollNumberModel.js +14 -1
  225. package/dist/models/psql/userLeaveRequestModel.d.ts +1 -0
  226. package/dist/models/psql/userLeaveRequestModel.js +14 -1
  227. package/dist/models/psql/userProjectAssessmentOptionModel.d.ts +1 -0
  228. package/dist/models/psql/userProjectAssessmentOptionModel.js +14 -1
  229. package/dist/models/psql/workingDayModel.d.ts +1 -0
  230. package/dist/models/psql/workingDayModel.js +10 -1
  231. package/dist/models/psql/workingShiftModel.d.ts +1 -0
  232. package/dist/models/psql/workingShiftModel.js +10 -1
  233. package/package.json +1 -1
@@ -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('announcementes');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('announcementes', '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('announcementes');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('announcementes', '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('user_has_announcementes');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('user_has_announcementes', '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('user_has_announcementes');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('user_has_announcementes', '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('user_has_batches');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('user_has_batches', '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('user_has_batches');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('user_has_batches', '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('class_rooms');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('class_rooms', '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('class_rooms');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('class_rooms', '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('bank_account_details');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('bank_account_details', '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('bank_account_details');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('bank_account_details', '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('working_days');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('working_days', '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('working_days');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('working_days', '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('working_shift_days');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('working_shift_days', '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('working_shift_days');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('working_shift_days', '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('user_has_home_work');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('user_has_home_work', '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('user_has_home_work');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('user_has_home_work', '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('batch_subject_book_assessments');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('batch_subject_book_assessments', '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('batch_subject_book_assessments');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('batch_subject_book_assessments', '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('batch_subject_project_assessments');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('batch_subject_project_assessments', '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('batch_subject_project_assessments');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('batch_subject_project_assessments', '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('project_assessment_options');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('project_assessment_options', '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('project_assessment_options');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('project_assessment_options', '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('home_work');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('home_work', '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('home_work');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('home_work', '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('user_has_roll_number');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('user_has_roll_number', '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('user_has_roll_number');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('user_has_roll_number', '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('fee_history');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('fee_history', '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('fee_history');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('fee_history', '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('fee_reminders');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('fee_reminders', '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('fee_reminders');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('fee_reminders', '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('payment_terms');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('payment_terms', '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('payment_terms');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('payment_terms', '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('subject_has_fee');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('subject_has_fee', '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('subject_has_fee');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('subject_has_fee', '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('lecture_history');
4
+ // Check if column already exists
5
+ if (!table.academic_calendar_id) {
6
+ await queryInterface.addColumn('lecture_history', '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('lecture_history');
15
+ // Remove only if column exists
16
+ if (table.academic_calendar_id) {
17
+ await queryInterface.removeColumn('lecture_history', '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('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>;