'array', 'recorded_at' => 'datetime', ]; } protected static function booted(): void { static::creating(function (DentalChartEvent $event) { if (! $event->uuid) { $event->uuid = (string) Str::uuid(); } }); } public function chart(): BelongsTo { return $this->belongsTo(DentalChart::class, 'dental_chart_id'); } public function visit(): BelongsTo { return $this->belongsTo(Visit::class, 'visit_id'); } public function patient(): BelongsTo { return $this->belongsTo(Patient::class, 'patient_id'); } }