Skip to content

Database Models

FluentBooking exposes 15 ORM models built on the WPFluent framework (Laravel-inspired Eloquent). Models extend a shared Model base class and live under FluentBooking\App\Models (core) and FluentBookingPro\App\Models (Pro).

Model Catalog

ModelEditionTableDescription
BookingCorefcal_bookingsRepresents an individual booking (appointment) created when an attendee schedules time on a calendar.
CalendarCorefcal_calendarsTop-level scheduling container that owns event types, availability, and bookings for a host or resource.
CalendarSlotCorefcal_calendar_eventsBookable event type within a calendar (for example, a 15-minute consultation), with its configuration and availability rules. Internally referred to as a "slot" and stored in the fcal_calendar_events table.
AvailabilityCorefcal_metaAvailability schedule defining recurring weekly hours and date overrides. Stored in fcal_meta with object_type='availability' — the weekly schedule lives in the serialized value column.
BookingActivityCorefcal_booking_activityActivity stream entries tied to a booking — status changes, notes, and audit log lines.
BookingHostCorefcal_booking_hostsPivot rows linking bookings to their host users in multi-host (team / collective / round-robin) scheduling.
BookingMetaCorefcal_booking_metaKey/value metadata attached to bookings (booking field answers, location details, custom data). Columns: booking_id, meta_key, value.
MetaCorefcal_metaPolymorphic key/value metadata table used by FluentBooking entities (calendars, events, availability, webhooks). Columns: object_type, object_id, key, value.
StaffCoreLightweight representation of a host/staff user — wraps WP user data with FluentBooking-specific helpers.
UserCoreusersExtended WordPress user model exposing FluentBooking-specific relations such as calendars and bookings.
ModelCoreShared base ORM class extended by every FluentBooking model. Sets up timestamps, casts, and the booted-trait pipeline.
OrderPROfcal_ordersPayment order created when a paid event is booked (Pro). Tracks total, currency, and order status.
OrderItemsPROfcal_order_itemsLine items belonging to a payment order (Pro). One row per bookable item (event, addon, coupon).
TransactionsPROfcal_transactionsTransaction records persisted for each payment gateway response (Pro). Includes successful, refunded, and failed attempts.
WebhookPROOutbound webhook configuration (Pro). Defines event triggers, target URL, headers, and authentication.