'float', 'associate_price' => 'float', 'supplier_price' => 'float', 'size_s' => 'boolean', 'size_m' => 'boolean', 'size_l' => 'boolean', 'size_xl' => 'boolean', 'stock_s' => 'integer', 'stock_m' => 'integer', 'stock_l' => 'integer', 'stock_xl' => 'integer', 'status' => StoreItemStatusEnum::class, ]; } public function category(): BelongsTo { return $this->belongsTo(Category::class); } public function interests(): HasMany { return $this->hasMany(StoreItemInterest::class); } public function media(): HasMany { return $this->hasMany(Media::class, 'source_id')->where('source', 'store_item'); } }