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

33 lines
622 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,
price_usd = $10,
rooms = $11,
bathrooms = $12,
area = $13,
admin_tag = $14,
last_updated = $15
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,
price_usd,
rooms,
bathrooms,
area,
admin_tag,
time_created,
last_updated;