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

36 lines
648 B
MySQL
Raw Normal View History

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