29 lines
614 B
PHP
29 lines
614 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class ProfitCenterSupplierSchedule extends BaseAuditable
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $guarded = ['id', 'created_at', 'updated_at'];
|
|
|
|
public function profitCenter(): BelongsTo
|
|
{
|
|
return $this->belongsTo(ProfitCenter::class);
|
|
}
|
|
|
|
public function supplier(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Supplier::class);
|
|
}
|
|
|
|
public function deliverySchedule(): BelongsTo
|
|
{
|
|
return $this->belongsTo(DeliverySchedule::class);
|
|
}
|
|
}
|