30 lines
603 B
PHP
30 lines
603 B
PHP
<?php
|
|
|
|
namespace Modules\IndustrialEngineering\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class RoutingOperation extends Model
|
|
{
|
|
use BelongsToBusiness;
|
|
|
|
protected $table = 'ie_routing_operations';
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $casts = [
|
|
'setup_time_hours' => 'decimal:2',
|
|
'run_time_hours' => 'decimal:2',
|
|
];
|
|
|
|
public function lineRevision()
|
|
{
|
|
return $this->belongsTo(LineRevision::class, 'line_revision_id');
|
|
}
|
|
|
|
public function workCenter()
|
|
{
|
|
return $this->belongsTo(WorkCenter::class, 'work_center_id');
|
|
}
|
|
}
|