feat: add ProductVariant model and service layer for CRUD operations with attachment handling

This commit is contained in:
2026-07-01 10:09:04 -03:00
parent d6a17cb449
commit a0a0cc7255
4 changed files with 18 additions and 18 deletions

View File

@@ -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',
];
}