38 lines
798 B
PHP
38 lines
798 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models\Juil;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
|
||
|
|
class PmisAttendanceEquipment extends Model
|
||
|
|
{
|
||
|
|
use SoftDeletes;
|
||
|
|
|
||
|
|
protected $table = 'pmis_attendance_equipments';
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'tenant_id',
|
||
|
|
'attendance_id',
|
||
|
|
'equipment_name',
|
||
|
|
'specification',
|
||
|
|
'equipment_number',
|
||
|
|
'operator',
|
||
|
|
'man_days',
|
||
|
|
'work_content',
|
||
|
|
'sort_order',
|
||
|
|
'options',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'man_days' => 'decimal:1',
|
||
|
|
'options' => 'array',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function attendance(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(PmisDailyAttendance::class, 'attendance_id');
|
||
|
|
}
|
||
|
|
}
|