realtor-lp-backend/sql/project/insert.sql
2023-05-03 14:29:52 -04:00

38 lines
722 B
SQL

INSERT INTO project (
id,
title,
description,
realtor_id,
media,
project_condition,
project_type,
project_state,
country,
city,
district,
admin_tag,
floors,
finish_date,
order_index,
time_created,
last_updated
) VALUES (
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $16
) RETURNING
id,
title,
description,
realtor_id,
media as "media: _",
project_condition as "project_condition: _",
project_type as "project_type: _",
project_state as "project_state: _",
country,
city,
district,
admin_tag,
floors,
finish_date,
order_index,
time_created,
last_updated;