@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
@@ -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
+ };
@@ -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('fee_reminder_settings');
4
+ if (!table.academic_calendar_id) {
5
+ await queryInterface.addColumn('fee_reminder_settings', '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('fee_reminder_settings');
14
+ if (table.academic_calendar_id) {
15
+ await queryInterface.removeColumn('fee_reminder_settings', 'academic_calendar_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -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
  }
@@ -6,4 +6,5 @@ export interface IBatchSubjectBookAssessmentModelAttributes extends IDefaultAttr
6
6
  standardId: string;
7
7
  assessmentType: string;
8
8
  instituteId?: string;
9
+ academicCalendarId?: string;
9
10
  }
@@ -9,4 +9,5 @@ export interface IBatchSubjectProjectAssessmentModelAttributes extends IDefaultA
9
9
  optionSelectionDueDate: Date;
10
10
  submissionDate: Date;
11
11
  instituteId?: string;
12
+ academicCalendarId?: string;
12
13
  }
@@ -6,4 +6,5 @@ export interface ICertificatesHistoryAttributes extends IDefaultAttributes, Docu
6
6
  userInstituteMetaId: string[];
7
7
  certificatesManagementId: string;
8
8
  additionalData: object;
9
+ academicCalendarId?: string;
9
10
  }
@@ -8,4 +8,5 @@ export interface ICertificatesManagementAttributes extends IDefaultAttributes, D
8
8
  instituteId?: string;
9
9
  additionalData: object;
10
10
  isInstituteDefault?: boolean;
11
+ academicCalendarId?: string;
11
12
  }
@@ -10,4 +10,5 @@ export interface IClassRoomModelAttributes extends IDefaultAttributes {
10
10
  instituteId: string;
11
11
  floorId?: string;
12
12
  typeManagementId?: string;
13
+ academicCalendarId?: string;
13
14
  }
@@ -15,4 +15,6 @@ export interface ICourseModelAttributes extends IDefaultAttributes {
15
15
  status: COMMAN_STATUS;
16
16
  instructor: string;
17
17
  expiryTime: number;
18
+ thumbNail: string;
19
+ introVideo: string;
18
20
  }
@@ -11,4 +11,5 @@ export interface IDailyBookModelAttributes extends IDefaultAttributes, Document
11
11
  subjectIndexId: string;
12
12
  chapterIndexId: string[];
13
13
  teachingAid: string;
14
+ academicCalendarId?: string;
14
15
  }
@@ -18,4 +18,5 @@ export interface IEventModelAttributes extends IDefaultAttributes, Document {
18
18
  startTime: Date;
19
19
  endTime: Date;
20
20
  plannerSyncStatus?: PLANNER_SYNC_STATUS;
21
+ academicCalendarId?: string;
21
22
  }
@@ -27,4 +27,5 @@ export interface IExamGroupModelAttributes extends IDefaultAttributes, Document
27
27
  standards: string[];
28
28
  subjects?: string[];
29
29
  status: EXAM_GROUP_STATUS;
30
+ academicCalendarId?: string;
30
31
  }
@@ -20,4 +20,5 @@ export interface IExamHasAnswerSheetModelAttributes extends IDefaultAttributes,
20
20
  resultStatus?: EXAM_ANSWER_SHEET_RESULT_STATUS;
21
21
  isInProgress?: boolean;
22
22
  studentExamIp?: string;
23
+ academicCalendarId?: string;
23
24
  }
@@ -38,4 +38,5 @@ export interface IExamModelAttributes extends IDefaultAttributes, Document {
38
38
  isMarksAdded?: boolean;
39
39
  plannerSyncStatus?: PLANNER_SYNC_STATUS;
40
40
  publishedDate?: Date;
41
+ academicCalendarId?: string;
41
42
  }