Skip to content

Availability Model

Availability 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.

Class

  • Source: fluent-booking/app/Models/Availability.php
  • Table: fcal_meta
  • Primary key: id
  • Extends: Model

Attributes

ColumnTypeNullableDefaultDescription
idBIGINT UNSIGNED NOT NULL PRIMARY KEYYesPrimary key for the row.
object_typeVARCHAR(50)NoPolymorphic object type for the meta row.
object_idBIGINTYesPolymorphic object ID for the meta row.
keyVARCHAR(192)NoMeta key.
valueLONGTEXTYesMeta value (often JSON-encoded).
created_atTIMESTAMPYesCreation timestamp maintained by the ORM.
updated_atTIMESTAMPYesUpdate timestamp maintained by the ORM.

Public Methods (sample)

MethodSignature
setValueAttribute()$value
getValueAttribute()$value
getAuthor()