diff --git a/src/Resources/Product.php b/src/Resources/Product.php index 02ee577..442e40f 100644 --- a/src/Resources/Product.php +++ b/src/Resources/Product.php @@ -9,6 +9,7 @@ use Morningtrain\Economic\Attributes\Resources\GetCollection; use Morningtrain\Economic\Attributes\Resources\GetSingle; use Morningtrain\Economic\Attributes\Resources\Properties\Filterable; +use Morningtrain\Economic\Attributes\Resources\Properties\PrimaryKey; use Morningtrain\Economic\Attributes\Resources\Properties\Sortable; use Morningtrain\Economic\Attributes\Resources\Update; use Morningtrain\Economic\Traits\Resources\Creatable; @@ -53,7 +54,7 @@ class Product extends Resource public ?string $name; public ?ProductGroup $productGroup; - + #[PrimaryKey] public ?string $productNumber; #[Filterable]