realtor-lp-backend/sql/project/insert.sql

38 lines
722 B
MySQL
Raw Normal View History

2023-05-03 18:29:52 +00:00
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;