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
| Link | What it holds | Example: a physiotherapy practice |
|---|---|---|
| Business | Everything below | The practice |
| Location | A place you operate, with its address and timezone | The city-center clinic |
| Department | A team or function inside the location | Sports rehab |
| Working hours | Open and close times for each day of the week, on the department | Monday to Friday, 8:00 to 18:00 |
| Exceptions | One-off or yearly closures and special hours, on the department | Closed on public holidays |
| Bookable collection | The entries people book, with a date and time field for the start | Sessions |
| Booking profile | Which location and department, daily or hourly slots, slot interval, fixed duration, capacity | Hourly slots every 30 minutes, 45-minute sessions, two therapists at once |
| Booking | An entry in the collection, its start time on a free slot | Tuesday 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.
Related
For slots and capacity, see Slot length and capacity; for days off, Add exceptions and days off.