CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Student Projects (College Reports)

πŸŽ“ Student Projects (College Reports) Β· Sequence

Hotel Room Booking System Sequence Diagram (Book a Room)

Booking a hotel room online, from the availability search to the confirmation email.

More Student Projects (College Reports) templates

Drawing diagram…

What this diagram shows

  • Room held while the guest pays
  • Payment failure releases the room
  • Confirmation by email

Prompt used

Sequence diagram for booking a hotel room online: the guest searches dates on the website; the booking service checks availability in the database; the guest picks a room, which is held for 10 minutes; the payment gateway charges the guest; on success the booking is confirmed and an email is sent; on failure the hold is released.

Mermaid code
sequenceDiagram
  actor G as Guest
  participant W as Website
  participant B as Booking Service
  participant DB as Database
  participant P as Payment Gateway
  participant E as Email Service
  G->>W: Search dates and guests
  W->>B: Check availability
  B->>DB: Query free rooms
  DB-->>B: Available rooms
  B-->>W: Rooms and prices
  G->>W: Choose room and pay
  W->>B: Create booking
  B->>DB: Hold room for 10 minutes
  B->>P: Charge amount
  alt Payment successful
    P-->>B: Success
    B->>DB: Confirm booking
    B->>E: Send confirmation
    E-->>G: Booking email
  else Payment failed
    P-->>B: Failed
    B->>DB: Release hold
    B-->>W: Show payment failed
  end

Related templates

Use CaseStudent Projects (College Reports)

Library Management System Use Case Diagram

Who uses a college library system and what each of them can do: members, the librarian and the system administrator.

Database ERDStudent Projects (College Reports)

Library Management System ER Diagram

The database of a library system: books and their copies, authors, members, loans, reservations and fines, with keys and cardinality.

Data FlowStudent Projects (College Reports)

Library Management System Data Flow Diagram (Level 1)

How data moves through a library system: members and the librarian, the main processes, and the data stores they read and write.

Class UMLStudent Projects (College Reports)

Library Management System Class Diagram

The main classes of a library system with attributes, methods and UML relationships.

SequenceStudent Projects (College Reports)

Library Management System Sequence Diagram (Issue a Book)

The steps when a member borrows a book: checks, loan record and the copy status update.

Use CaseStudent Projects (College Reports)

Online Examination System Use Case Diagram

What students, examiners and the administrator do in an online examination system.