Changes between Initial Version and Version 1 of UseCase0006


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

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0006

    v1 v1  
     1= Use-case 0006 - Book Venue =
     2
     3'''Initiating actor:''' Bride / Groom (Wedding owner)
     4
     5'''Other actors:''' Wedding Organizer (Assistant)
     6
     7== Description ==
     8The user books a venue for the wedding. The venue booking includes date, start/end time, booking status and price, and connects the wedding with a chosen venue.
     9
     10== Scenario ==
     111. The user opens "Venues" and searches/selects a venue.
     122. The system shows available venues with details.
     13
     14{{{
     15SET search_path TO project;
     16
     17SELECT v.venue_id, v.name, v.location, v.city, v.capacity, v.price_per_guest, vt.type_name
     18FROM venue v
     19JOIN venue_type vt ON v.type_id = vt.type_id
     20ORDER BY v.city, v.name;
     21}}}
     22
     233. The user selects a venue and clicks "Book".
     244. The system displays booking form: date, start_time, end_time, status, price.
     255. The user submits booking.
     266. The system inserts the booking into database.
     27
     28{{{
     29SET search_path TO project;
     30
     31INSERT INTO venue_booking("date", start_time, end_time, status, price, venue_id, wedding_id)
     32VALUES (:date, :start_time, :end_time, :status, :price, :venue_id, :wedding_id)
     33RETURNING booking_id;
     34}}}
     35
     367. The system confirms booking and displays booked venue details.