jl-backend-rs/sql/unit/update.sql

24 lines
414 B
SQL

UPDATE unit SET
price_usd = $1,
unit_type = $2,
rooms = $3,
bathrooms = $4,
area = $5,
description = $6,
media = $7,
admin_tag = $8,
last_updated = $9
WHERE id = $10
RETURNING
id,
project_id,
price_usd,
unit_type as "unit_type: _",
rooms,
bathrooms,
area,
description,
media as "media: _",
admin_tag,
time_created,
last_updated;