QUERY PLAN
Sort (cost=4.43..4.43 rows=1 width=233)
Sort Key: serial_no DESC
-> Seq Scan on tbl_erp_sales_gifts (cost=0.00..4.42 rows=1 width=233)
Filter: ((created_at >= '2025-12-18 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-12-18 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%ZSD-20251218-%'::text) AND (length((serial_no)::text) = 18))