Business & shops

Build a salon booking app with AI

Match a service to an eligible stylist, reserve its full duration, and expose only each customer’s own appointments.

Apirex TeamUpdated AndroidiOS
On this page
  1. Screens
  2. Data model
  3. Native features for the salon booking app
  4. Android notes (Kotlin and Jetpack Compose)
  5. iPhone notes (Swift and SwiftUI)
  6. Copy-paste prompt
  7. Acceptance test
  8. Frequently asked questions
4screens
5data tables
142word prompt
2platforms: Android, iOS

A salon booking app needs to account for who performs a service and how long their chair is occupied. A haircut and a color appointment cannot be treated as interchangeable calendar dots. Start with owner-supplied stylist eligibility, prices and durations; use this build brief to validate a customer reservation against the same schedule staff rely on at the salon.

Screens

  • Services: explain supplied treatments, full occupied duration and current price without guessing salon offerings.
  • Stylists: show staff profiles and which services each stylist can actually perform.
  • Book: combine stylist, treatment and available start time, then show the salon’s cancellation terms.
  • My appointments: display confirmed reservations, cancellation eligibility and the selected stylist’s name.

Data model

Salon Booking storage contract
TableKey fieldsPurpose
stylistsid (uuid), display_name (text), active (bool), zone_id (text)Salon staff identities and their scheduling zone.
servicesid (uuid), title (text), duration_minutes (int), buffer_minutes (int), price_minor (int)Real treatment durations, turnover buffers and owner-controlled prices.
stylist_servicesstylist_id (uuid), service_id (uuid), enabled (bool)Eligibility linking each treatment to qualified salon staff.
availabilityid (uuid), stylist_id (uuid), starts_at (timestamptz), ends_at (timestamptz)Working intervals supplied by authorized salon staff.
appointmentsid (uuid), customer_id (uuid), stylist_id (uuid), service_id (uuid), duration_minutes (int), buffer_minutes (int), starts_at (timestamptz), ends_at (timestamptz), status (text)Reserved intervals that include the service’s occupied time.

Enforce customer ownership of appointments and salon staff roles with backend row-level security rather than trusting a profile switch. Reserve the stylist’s complete service-plus-buffer interval with a database exclusion constraint or a transaction that locks the relevant scheduling resource and checks overlap. A uniqueness rule on start time alone cannot protect differently sized treatments. Only authorized staff may edit availability or eligibility, and reducing availability must not silently erase an already confirmed customer visit.

Ask whether a stylist’s absence cancels appointments or requires customer-approved reassignment. Never move a customer to another person solely because the new stylist has an empty interval. Preserve the original booking and expose a pending resolution until authorized salon staff follow the owner’s documented change process.

Native features for the salon booking app

Eligibility, treatment length and cleanup buffer jointly determine which start times can be offered for a particular stylist. Move or cancel the corresponding reminder when a service is rescheduled; display the stylist and salon-zone appointment time.

FeatureAndroid (Kotlin)iPhone (SwiftUI)Notes
Stylist-specific availabilityServer interval checks with Room catalog cacheServer slot requests with SwiftData service cacheEligibility, treatment length and cleanup buffer jointly determine which start times can be offered for a particular stylist.
Appointment remindersNotificationManager keyed by appointment IDUserNotifications appointment requestsMove or cancel the corresponding reminder when a service is rescheduled; display the stylist and salon-zone appointment time.
Salon directionsDestination geo intentMapKit salon coordinate handoffDirections should use the booked salon location even when the customer refuses access to their current position.

Android notes (Kotlin and Jetpack Compose)

Use a Material 3 service chooser followed by a LazyColumn of eligible stylists keyed by stylist ID. The Compose booking ViewModel should clear its selected start time whenever service_id or stylist_id changes, because a haircut slot may not fit a color treatment.

  • Load availability through a cancellable request keyed by stylist, service and salon date. Room may cache portraits, treatment descriptions and durations, but only a server interval reservation can confirm the occupied time; prevent an older response from repopulating stale slots.
  • Present the final selection in a ModalBottomSheet showing treatment duration, cleanup buffer, stylist, price and salon time zone. Navigation Compose should retain this draft when opening a stylist biography, without submitting a booking merely because the customer returns.
  • On an Android phone, choose a forty-five-minute cut and switch to a two-hour color service with the same stylist. Verify the old start time clears. Book from one account while a second requests an overlapping interval, then check that only the confirmed appointment receives a reminder.

iPhone notes (Swift and SwiftUI)

Keep the service-and-stylist draft in observable state above the SwiftUI booking screens. Use NavigationStack for biographies and selection, with a task identifier that changes when treatment duration changes so a late haircut response cannot overwrite color-service availability.

  • Use a List of available starts keyed by the full server slot identity, not a formatted time string. Present confirmation in a sheet with detents that leaves the salon’s zone readable at larger text sizes, and show the total occupied interval separately from hands-on treatment time.
  • UserNotifications requests should be associated with the saved appointment identifier. Rescheduling must remove the previous local request only according to the confirmed change result; an unsuccessful move must not leave the customer without the original appointment reminder.
  • On iPhone, book a stylist while the device is set to a different time zone from the salon. Change the appointment, deny notification access, and reopen My appointments. Compare stylist, service duration and salon-local start with the staff schedule, then test destination directions without location permission.

Copy-paste prompt

Build this yourself 140 words · Android
Create a salon booking app for Android with Services, Stylists, Book and My appointments. Model stylist eligibility, services, working intervals and customer-owned appointments. Ask me for actual treatment prices, durations, cleanup buffers, salon time zone, opening hours and cancellation policy; do not fabricate a service menu. When a customer changes stylist or treatment, reload available intervals and clear an invalid start time. Reserve the full occupied interval using a server transaction or database overlap constraint, including simultaneous requests with different durations. Enforce staff access separately from customer access. Include loading, no eligible stylist, fully booked, stale availability, submission error and reminder-permission-denied states. Add optional directions using supplied salon coordinates. Prove the flow by booking a treatment, checking it against the authorized staff schedule and reopening the customer’s appointment. A second overlapping request must fail even if its starting minute differs.

Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.

Acceptance test

  1. Configure a stylist who offers a 45-minute cut plus a 15-minute buffer, and another stylist who does not offer that treatment.
  2. Choose the cut and verify the ineligible stylist cannot be selected through either the screen or a direct booking request.
  3. Book at 10:00, then use another account to request the same stylist at 10:30; require an overlap rejection from the server.
  4. Inspect the appointment in the authorized staff schedule, reopen My appointments and verify the stylist, price and salon-zone time.
  5. Try cancelling after the owner’s configured deadline and confirm the server refuses; deny location access and verify salon directions still use the supplied destination.

Frequently asked questions

Can one stylist serve two clients while color develops?

Not under the single-interval model in this brief. Split-stage services, shared chairs and processing gaps require an owner-defined resource model; do not assume that apparent idle time is safely bookable.

Where do deposit amounts come from?

The salon must supply deposit and refund terms, and the initial scope can omit online payment entirely. Adding Stripe or Razorpay deposits means server-created amounts, server verification and signature-checked webhooks before recording payment.

How should travelling customers see appointment times?

Keep the salon’s named time zone visible wherever a customer selects or confirms an appointment. Ask whether to show an additional device-local label, and apply the cancellation cutoff using the owner’s salon-zone rule.

Build this blueprint

The blueprint prompt, ready for your platform. Edit anything before you send it.

AndroidKotlin · Jetpack ComposeReal source on your computer

Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.