| Aggregate (cost=376.28..376.29 rows=1 width=8) |
| -> Hash Join (cost=96.28..376.27 rows=3 width=4) |
| Hash Cond: (c.id = ps.case_id) |
| -> Seq Scan on tbl_cases c (cost=0.00..277.89 rows=277 width=4) |
| Filter: (deduct_points_from = 1001) |
| -> Hash (cost=95.00..95.00 rows=102 width=8) |
| -> Seq Scan on tbl_pre_sales ps (cost=0.00..95.00 rows=102 width=8) |
| Filter: ((NOT is_draft) AND (start_at >= '2025-01-01 00:00:00+08'::timestamp with time zone) AND (start_at <= '2025-12-31 23:59:59+08'::timestamp with time zone)) |