PhoenixKitCalendar.Schemas.Participant (PhoenixKitCalendar v0.1.0)

Copy Markdown View Source

A participant attached to a calendar event.

Loose kind + target_uuid reference (activity-feed pattern — no cross-module FKs) with a display_name snapshot frozen at save, so the row renders even if the source module is later disabled or the record deleted.

kindtarget_uuidgrants visibility to
usera phoenix_kit_users uuidthat user
staff_persona phoenix_kit_staff_people uuidthe person's linked user (live)
crm_contacta phoenix_kit_crm_contacts uuidthe contact's linked user, when any (live)
crm_companya phoenix_kit_crm_companies uuidevery CURRENT member contact's linked user (live)
free_textNULLnobody — display only

Visibility resolution is LIVE: PhoenixKitCalendar.Events joins the physical staff/CRM tables at query time (they exist in every install via core migrations; module code is never needed and empty tables no-op).

Summary

Functions

Allowed participant kinds.

Types

t()

@type t() :: %PhoenixKitCalendar.Schemas.Participant{
  __meta__: term(),
  added_by_uuid: term(),
  display_name: term(),
  event_uuid: term(),
  inserted_at: term(),
  kind: term(),
  target_uuid: term(),
  updated_at: term(),
  uuid: term()
}

Functions

kinds()

@spec kinds() :: [String.t()]

Allowed participant kinds.