first commit

This commit is contained in:
2025-03-05 20:44:45 -06:00
commit 06dbf8e2a7
74 changed files with 9681 additions and 0 deletions

View File

@ -0,0 +1,39 @@
<?php
namespace Koneko\VuexyWarehouse\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ProductPropertyValue extends Model
{
use HasFactory;
protected $table = 'product_property';
protected $primaryKey = 'id';
public $incrementing = false;
protected $keyType = 'mediumint';
protected $fillable = [
'product_id',
'property_id',
'value',
];
/**
* Relación con el producto.
*/
public function product(): BelongsTo
{
return $this->belongsTo(Product::class, 'product_id');
}
/**
* Relación con la propiedad del producto.
*/
public function property(): BelongsTo
{
return $this->belongsTo(ProductProperty::class, 'property_id');
}
}