| Aggregate (cost=103.32..103.33 rows=1 width=8) |
| -> Nested Loop (cost=0.29..103.32 rows=1 width=4) |
| -> Seq Scan on tbl_pre_sales ps (cost=0.00..95.00 rows=1 width=8) |
| Filter: ((NOT is_draft) AND (start_at >= '2025-12-23 00:00:00+08'::timestamp with time zone) AND (start_at <= '2025-12-23 23:59:59+08'::timestamp with time zone)) |
| -> Index Scan using tbl_cases_pkey on tbl_cases c (cost=0.29..8.32 rows=1 width=4) |
| Index Cond: (id = ps.case_id) |
| Filter: (deduct_points_from = ANY ('{1001,1004,1005,1013,5087,5295,5300,5311,5329,5332,5420,5448,5449}'::integer[])) |