wiki:UseCase0008

Version 1 (modified by 193284, 10 days ago) ( diff )

--

Use-case 0008 - Book Photographer

Initiating actor: Bride / Groom (Wedding owner)

Other actors: Wedding Organizer (Assistant)

Description

The user reserves a photographer for the wedding day. The booking is recorded with date, time range, status and links the photographer to a wedding.

Scenario

  1. The user opens the "Photographers" section.
  2. The system lists photographers.
SET search_path TO project;

SELECT photographer_id, name, email, phone_number, price_per_hour
FROM photographer
ORDER BY name;
  1. The user selects a photographer and clicks "Book".
  2. The system displays a booking form.
  3. The user submits booking.
  4. The system saves the booking in the database.
SET search_path TO project;

INSERT INTO photographer_booking("date", start_time, end_time, status, photographer_id, wedding_id)
VALUES (:date, :start_time, :end_time, :status, :photographer_id, :wedding_id)
RETURNING booking_id;
  1. The system confirms booking and displays booking details.
Note: See TracWiki for help on using the wiki.