One availability rule of a service. Maps 1:1 onto
PhoenixLiveCalendar.Availability:
- Weekly rule —
days_of_weekset (ISO 1=Mon..7=Sun),datenil. - Date override —
dateset; overrides every weekly rule on that date (the lib's precedence rule). available: falseturns either shape into a block-out (a closed weekday or a blackout date).
For minute-unit services start_time/end_time bound the bookable
window (both required). For day/night services the rule is date-granular
and times stay nil — a weekly rule marks open days (arrival days), a
date override closes or opens a specific date.
Summary
Functions
service_uuid is never cast from attrs — the context passes it
explicitly (ownership pattern, mirrors phoenix_kit_calendar).