'boolean']; } public function business(): BelongsTo { return $this->belongsTo(Business::class, 'businessId'); } public function user(): BelongsTo { return $this->belongsTo(User::class, 'userId'); } public function preferredBarber(): BelongsTo { return $this->belongsTo(StaffProfile::class, 'preferredBarberId'); } public function appointments(): HasMany { return $this->hasMany(Appointment::class, 'customerId'); } public function loyaltyAccounts(): HasMany { return $this->hasMany(LoyaltyAccount::class, 'customerId'); } public function notes(): HasMany { return $this->hasMany(CustomerNote::class, 'customerId'); } public function receivedNotifications(): HasMany { return $this->hasMany(Notification::class, 'recipientCustomerId'); } public function pushSubscriptions(): HasMany { return $this->hasMany(PushSubscription::class, 'customerId'); } }