'date', 'valid_to' => 'date', 'is_default' => 'boolean', ]; public function clientGroups(): HasMany { return $this->hasMany(ClientGroup::class, 'price_list_id'); } public function products(): BelongsToMany { return $this->belongsToMany(Product::class, 'product_price_list') ->withPivot('price') ->withTimestamps(); } }