QUERY PLAN
Delete on tbl_calendars (cost=0.00..832.15 rows=1 width=6)
-> Seq Scan on tbl_calendars (cost=0.00..832.15 rows=1 width=6)
Filter: ((created_by = 1000) AND ((start_at >= '2025-07-11 00:00:00+08'::timestamp with time zone) OR (end_at >= '2025-07-11 00:00:00+08'::timestamp with time zone)) AND ((system_calendar_id)::text <> ALL ('{262b8161-1ce6-4200-8b00-10977d081b23_65,262b8161-1ce6-4200-8b00-10977d081b23_67,262b8161-1ce6-4200-8b00-10977d081b23_258,262b8161-1ce6-4200-8b00-10977d081b23_259,262b8161-1ce6-4200-8b00-10977d081b23_262,262b8161-1ce6-4200-8b00-10977d081b23_264,262b8161-1ce6-4200-8b00-10977d081b23_268,262b8161-1ce6-4200-8b00-10977d081b23_269,262b8161-1ce6-4200-8b00-10977d081b23_270,262b8161-1ce6-4200-8b00-10977d081b23_271,262b8161-1ce6-4200-8b00-10977d081b23_274,262b8161-1ce6-4200-8b00-10977d081b23_275,262b8161-1ce6-4200-8b00-10977d081b23_301}'::text[])))