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

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;