This commit is contained in:
2026-05-09 01:18:51 +02:00
parent 7116ee4619
commit 959970c150
132 changed files with 21310 additions and 0 deletions

30
app/Models/Product.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Product extends Model
{
protected $fillable = [
'sku',
'name',
'description',
'price',
'stock_quantity',
'category',
'status',
'imported_at',
];
protected $casts = [
'price' => 'decimal:2',
'imported_at' => 'datetime',
];
public function orderItems(): HasMany
{
return $this->hasMany(OrderItem::class);
}
}