PhoenixKitBookings.Schemas.Hold (PhoenixKitBookings v0.1.1)

Copy Markdown View Source

A short-lived capacity hold — created when a public visitor advances to the details step, so the seat they picked can't be sold out from under them while they type (the Cal.com SelectedSlots pattern).

Same either/or time shape as bookings (DB CHECK). Expired holds are ignored by every capacity query and deleted lazily — no sweeper needed.

Summary

Types

t()

@type t() :: %PhoenixKitBookings.Schemas.Hold{
  __meta__: term(),
  ends_at: term(),
  ends_on: term(),
  expires_at: term(),
  inserted_at: term(),
  service_uuid: term(),
  starts_at: term(),
  starts_on: term(),
  updated_at: term(),
  uuid: term()
}