| Version 5 (modified by , 19 hours ago) ( diff ) |
|---|
Forge a new build
Actors
User, Admin
Scenario
- The user clicks on the "FORGE" button
- A new build is created and a new forge page is displayed
INSERT INTO build (user_id, name, created_at, description, total_price, is_approved) VALUES ($userId, $name, CURRENT_DATE, $description, 0.00, false)
{{{
BEGIN;
SELECT
b.id,
b.user_id,
b.is_approved,
b.name,
b.description,
b.total_price,
FROM builds b
WHERE b.id = $1
AND b.user_id = $2
LIMIT 1;
SELECT
bc.component_id
FROM build_components bc
WHERE bc.build_id = $1;
COMMIT;
}}}
Attachments (2)
- clickForge.png (76.7 KB ) - added by 20 hours ago.
- showForge.png (103.7 KB ) - added by 20 hours ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.


