The following UML sequence diagram shows how the hotel management system works. The customer goes to reception to ask for a place to stay. Then the system checks whether there are empty rooms. Customer services are recorded in the database. The workflow also includes booking a room, payments, and invoices.