<?php

namespace App\Models\Tenancy;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;

class UserPromoCode extends Model
{
    protected $fillable = [
        'loyalty_id',
        'client_unique_id',
    ];

    public function scopeOfClient(Builder $query, string $clientUniqueId): Builder
    {
        return $query->where('client_unique_id', $clientUniqueId);
    }
}
