realtor-lp-backend/sql/property/fetch_with_realtor_id_paged...

22 lines
453 B
SQL

SELECT
id,
project_id,
realtor_id,
media as "media: _",
property_type as "property_type: _",
property_sale_type as "property_sale_type: _",
country,
city,
district,
order_index,
thumbnail_format as "thumbnail_format: _",
rooms,
bathrooms,
area,
parking_spots,
admin_tag,
time_created,
last_updated
FROM property WHERE realtor_id = $1
ORDER BY time_created DESC
LIMIT 25 OFFSET $2;