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

37 lines
745 B
SQL

UPDATE property SET
project_id = $2,
realtor_id = $3,
media = $4,
property_type = $5,
property_sale_type = $6,
country = $7,
city = $8,
district = $9,
order_index = $10,
thumbnail_format = $11,
rooms = $12,
bathrooms = $13,
area = $14,
parking_spots = $15,
admin_tag = $16,
last_updated = $17
WHERE id = $1
RETURNING
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;