| Version 1 (modified by , 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
- The user opens the "Photographers" section.
- The system lists photographers.
SET search_path TO project; SELECT photographer_id, name, email, phone_number, price_per_hour FROM photographer ORDER BY name;
- The user selects a photographer and clicks "Book".
- The system displays a booking form.
- The user submits booking.
- 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;
- The system confirms booking and displays booking details.
Note:
See TracWiki
for help on using the wiki.
