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

40 lines
461 B
SQL

INSERT INTO unit (
id,
project_id,
price_usd,
unit_type,
rooms,
bathrooms,
area,
description,
media,
admin_tag,
time_created,
last_updated
) VALUES (
$1,
$2,
$3,
$4,
$5,
$6,
$7,
$8,
$9,
$10,
$11,
$11
)
RETURNING
id,
project_id,
price_usd,
unit_type as "unit_type: _",
rooms,
bathrooms,
area,
description,
media as "media: _",
admin_tag,
time_created,
last_updated;