NotificationType::class, 'readAt' => 'datetime']; } public function business(): BelongsTo { return $this->belongsTo(Business::class, 'businessId'); } public function recipientUser(): BelongsTo { return $this->belongsTo(User::class, 'recipientUserId'); } public function recipientCustomer(): BelongsTo { return $this->belongsTo(CustomerProfile::class, 'recipientCustomerId'); } public function appointment(): BelongsTo { return $this->belongsTo(Appointment::class, 'appointmentId'); } public function loyaltyReward(): BelongsTo { return $this->belongsTo(LoyaltyReward::class, 'loyaltyRewardId'); } public function deliveries(): HasMany { return $this->hasMany(NotificationDelivery::class, 'notificationId'); } }