realtor-lp-backend/sql/property/insert.sql
2023-05-03 14:19:39 -04:00

36 lines
648 B
SQL

INSERT INTO property (
id,
project_id,
realtor_id,
media,
property_type,
property_sale_type,
country,
city,
district,
price_usd,
rooms,
bathrooms,
area,
admin_tag,
time_created,
last_updated
) VALUES (
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $15
) RETURNING
id,
project_id,
realtor_id,
media as "media: _",
property_type as "property_type: _",
property_sale_type as "property_sale_type: _",
country,
city,
district,
price_usd,
rooms,
bathrooms,
area,
admin_tag,
time_created,
last_updated;