'datetime', 'attachments_count' => 'integer' ]; /** * Get the client associated with the intervention. */ public function client(): BelongsTo { return $this->belongsTo(Client::class); } /** * Get the deceased associated with the intervention. */ public function deceased(): BelongsTo { return $this->belongsTo(Deceased::class); } /** * Get the location associated with the intervention. */ public function location(): BelongsTo { return $this->belongsTo(ClientLocation::class); } /** * Get the practitioner assigned to the intervention. */ public function assignedPractitioner(): BelongsTo { return $this->belongsTo(Thanatopractitioner::class, 'assigned_practitioner_id'); } /** * Get the user who created the intervention. */ public function creator(): BelongsTo { return $this->belongsTo(User::class, 'created_by'); } /** * Get the attachments for the intervention. */ public function attachments(): HasMany { return $this->hasMany(InterventionAttachment::class); } /** * Get the notifications for the intervention. */ public function notifications(): HasMany { return $this->hasMany(InterventionNotification::class); } }