Explanation

The booking model

Booking in Sonta is a chain: a business has locations, a location has departments, a department keeps working hours and exceptions, and a bookable collection has a profile that points at one location and department and turns their hours into slots. A booking is an ordinary entry in that collection whose start time sits on a free slot.

Booking in Sonta is a chain: a business has locations, a location has departments, a department keeps working hours and exceptions, and a bookable collection has a profile that points at one location and department and turns their hours into slots. A booking is an ordinary entry in that collection whose start time sits on a free slot.

Requirements

None to read. To set it up, see Setting up booking end to end.

The chain

LinkWhat it holdsExample: a physiotherapy practice
BusinessEverything belowThe practice
LocationA place you operate, with its address and timezoneThe city-center clinic
DepartmentA team or function inside the locationSports rehab
Working hoursOpen and close times for each day of the week, on the departmentMonday to Friday, 8:00 to 18:00
ExceptionsOne-off or yearly closures and special hours, on the departmentClosed on public holidays
Bookable collectionThe entries people book, with a date and time field for the startSessions
Booking profileWhich location and department, daily or hourly slots, slot interval, fixed duration, capacityHourly slots every 30 minutes, 45-minute sessions, two therapists at once
BookingAn entry in the collection, its start time on a free slotTuesday 10:30 with a named patient

Why it is built on departments

Different teams keep different hours. Sports rehab may run late on Thursdays while the front desk closes at five. Hanging hours and exceptions on the department, rather than on the collection, lets each team keep its own schedule while the booking profile says which schedule a collection follows. The same locations and departments also say where every other entry belongs, so booking is not a separate system; see Businesses and multi-tenancy.

A booking is an entry

Because a booking is an entry, it behaves like one: it has a status, it appears in views, it can start an automation such as a reminder, it can reference the client it is for, and an agent or your website can create it. What makes it a booking is only that its start time is checked against the chain when it is saved: open day, working hours, and free capacity. See Create a booking.

Notes and limitations

  • One active profile per collection. A collection books against one location and department at a time.
  • Hours are the foundation. Without working hours on the department, nothing is bookable; see Booking shows zero slots.
  • A calendar appears on a collection once it is bookable, showing entries by their booking time; see Table vs kanban vs calendar.

For slots and capacity, see Slot length and capacity; for days off, Add exceptions and days off.

Frequently asked questions

Where are working hours set?
On the department. Each department keeps its own hours and exceptions.
Is a booking a normal entry?
Yes. A booking is an ordinary entry, so it can start automations, appear in views, and reference other entries.
Can one collection book against two departments at once?
No. One profile is active per collection, pointing at one location and department.