d2d.emegrendeles.hu/app/Models/PricelistFile.php
E98Developer 9e90feb662 fishh UI
2026-03-04 15:20:17 +01:00

30 lines
666 B
PHP

<?php
namespace App\Models;
use App\Enums\PricelistFileStatusEnum;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class PricelistFile extends BaseAuditable
{
use SoftDeletes;
protected $casts = [
'status' => PricelistFileStatusEnum::class,
'processing_current_step_percentage' => 'integer',
'available_date' => 'date',
'workflow_steps' => 'array',
];
public function supplier(): BelongsTo
{
return $this->belongsTo(Supplier::class);
}
public function priceList(): BelongsTo
{
return $this->belongsTo(PriceList::class);
}
}