remax-backend-rs/sql/property/update.sql
2023-03-09 13:45:16 -04:00

14 lines
235 B
SQL

UPDATE property SET
title = $1,
description = $2,
agent_id = $3,
state = $4,
last_updated = $5
RETURNING
id,
title,
description,
agent_id,
state as "state: _",
time_created,
last_updated;