Changes between Initial Version and Version 1 of UseCase0003


Ignore:
Timestamp:
01/10/26 18:00:20 (10 days ago)
Author:
193284
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0003

    v1 v1  
     1= Use-case 0003 - Create Wedding =
     2
     3'''Initiating actor:''' Bride / Groom (Wedding owner)
     4
     5'''Other actors:''' None
     6
     7== Description ==
     8The registered user creates a new wedding plan by defining the wedding date, budget and notes. Each wedding is connected to exactly one user (owner).
     9
     10== Scenario ==
     111. The user opens the "Create Wedding" option from the dashboard.
     122. The system displays a form: wedding date, budget, notes.
     133. The user enters the wedding information and submits.
     144. The system inserts the new wedding in the database.
     15
     16{{{
     17SET search_path TO project;
     18
     19INSERT INTO wedding("date", budget, notes, user_id)
     20VALUES (:date, :budget, :notes, :user_id)
     21RETURNING wedding_id;
     22}}}
     23
     245. The system confirms creation and shows the created wedding details.
     25
     26{{{
     27SET search_path TO project;
     28
     29SELECT wedding_id, "date", budget, notes
     30FROM wedding
     31WHERE wedding_id = :wedding_id;
     32}}}