remax-backend-rs/sql/property/insert.sql

24 lines
279 B
SQL

INSERT INTO property (
id,
title,
description,
agent_id,
state,
time_created,
last_updated
) VALUES (
$1,
$2,
$3,
$4,
$5,
$6,
$6
) RETURNING
id,
title,
description,
agent_id,
state as "state: _",
time_created,
last_updated;