SELECTt0_.idASid_0,t0_.titleAStitle_1,t0_.typeAStype_2,t0_."startAt"ASstartat_3,t0_."endAt"ASendat_4,t0_."allDay"ASallday_5,t0_.descriptionASdescription_6,t0_.locationASlocation_7,t0_.colorAScolor_8,t0_.statusASstatus_9,t0_.attendeesASattendees_10,t0_."teamsLink"ASteamslink_11,t0_."hrmLeaveId"AShrmleaveid_12,t0_."reminderSentAt"ASremindersentat_13,t0_."mandatory"ASmandatory_14,t0_."acceptedBy"ASacceptedby_15,t0_."createdAt"AScreatedat_16,t0_."updatedAt"ASupdatedat_17,t0_."createdById"AScreatedbyid_18FROM"CRM_Pro_Calendar_Events"t0_WHEREt0_.status=?ANDt0_."startAt">=?ANDt0_."startAt"<=?ANDt0_.typeNOTIN (?,?) ORDER BYt0_."startAt"ASCLIMIT3
SELECTt0_.idASid_0,t0_.titleAStitle_1,t0_.typeAStype_2,t0_."startAt"ASstartat_3,t0_."endAt"ASendat_4,t0_."allDay"ASallday_5,t0_.descriptionASdescription_6,t0_.locationASlocation_7,t0_.colorAScolor_8,t0_.statusASstatus_9,t0_.attendeesASattendees_10,t0_."teamsLink"ASteamslink_11,t0_."hrmLeaveId"AShrmleaveid_12,t0_."reminderSentAt"ASremindersentat_13,t0_."mandatory"ASmandatory_14,t0_."acceptedBy"ASacceptedby_15,t0_."createdAt"AScreatedat_16,t0_."updatedAt"ASupdatedat_17,t0_."createdById"AScreatedbyid_18FROM"CRM_Pro_Calendar_Events"t0_WHEREt0_.status=?ANDt0_."startAt">=?ANDt0_."startAt"<=?ANDt0_.typeNOTIN (?,?)
ORDER BYt0_."startAt"ASCLIMIT3
SELECTt0_.idASid_0,t0_.titleAStitle_1,t0_.typeAStype_2,t0_."startAt"ASstartat_3,t0_."endAt"ASendat_4,t0_."allDay"ASallday_5,t0_.descriptionASdescription_6,t0_.locationASlocation_7,t0_.colorAScolor_8,t0_.statusASstatus_9,t0_.attendeesASattendees_10,t0_."teamsLink"ASteamslink_11,t0_."hrmLeaveId"AShrmleaveid_12,t0_."reminderSentAt"ASremindersentat_13,t0_."mandatory"ASmandatory_14,t0_."acceptedBy"ASacceptedby_15,t0_."createdAt"AScreatedat_16,t0_."updatedAt"ASupdatedat_17,t0_."createdById"AScreatedbyid_18FROM"CRM_Pro_Calendar_Events"t0_WHEREt0_.status='active'ANDt0_."startAt">='2026-04-20 00:00:00'ANDt0_."startAt"<='2026-04-27 00:00:00'ANDt0_.typeNOTIN ('LEAVE','SICK') ORDER BYt0_."startAt"ASCLIMIT3;