Aggregate (cost=310.41..310.42 rows=1 width=32) |
-> Hash Join (cost=236.08..305.29 rows=2046 width=6) |
Hash Cond: (t.purchase_contract_id = t_1.id) |
-> Seq Scan on tbl_erp_payment_tickets t (cost=0.00..63.81 rows=2054 width=10) |
Filter: ((created_at < '2025-08-05 17:19:26+08'::timestamp with time zone) AND (status = 2)) |
-> Hash (cost=211.09..211.09 rows=1999 width=4) |
-> Seq Scan on tbl_purchase_contracts t_1 (cost=0.00..211.09 rows=1999 width=4) |
Filter: ((NOT is_draft) AND (NOT is_refuse) AND (NOT is_chargeback) AND (created_at < '2025-08-05 17:19:26+08'::timestamp with time zone)) |