jl-backend-rs/sql/project/insert.sql
2023-03-19 11:21:15 -04:00

32 lines
570 B
SQL

INSERT INTO project (
id,
project_state,
project_type,
project_condition,
agent_id,
location_id,
title,
description,
admin_tag,
finish_date,
floors,
media,
time_created,
last_updated
) VALUES (
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $13
) RETURNING
id,
project_state as "project_state: _",
project_type as "project_type: _",
project_condition as "project_condition: _",
agent_id,
location_id,
title,
description,
admin_tag,
finish_date,
floors,
media as "media: _",
time_created,
last_updated;