feat: add ProductVariant model and service layer for CRUD operations with attachment handling
This commit is contained in:
@@ -13,7 +13,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
#[Fillable([
|
||||
'producto_id',
|
||||
'stock',
|
||||
'is_default',
|
||||
'is_placeholder',
|
||||
])]
|
||||
class ProductVariant extends Model
|
||||
{
|
||||
@@ -26,7 +26,7 @@ class ProductVariant extends Model
|
||||
return [
|
||||
'producto_id' => 'integer',
|
||||
'stock' => 'integer',
|
||||
'is_default' => 'boolean',
|
||||
'is_placeholder' => 'boolean',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user