- 일별 출면일보 마스터 + 인원/장비 3테이블 마이그레이션 - 캘린더 스트립 (1~31일) 날짜 선택 및 상태 닷 표시 - 인원/장비 탭 CRUD (추가/수정/삭제/번개 랜덤데이터) - 검토자 확인 모달 (조직도 + 검색 + 검토라인) - 양식보기 모달 (출면일보/장비일보 인쇄 양식) - 날씨/특이사항/상태 업데이트 API
39 lines
799 B
PHP
39 lines
799 B
PHP
<?php
|
|
|
|
namespace App\Models\Juil;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class PmisAttendanceWorker extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'pmis_attendance_workers';
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'attendance_id',
|
|
'work_type',
|
|
'job_type',
|
|
'name',
|
|
'man_days',
|
|
'amount',
|
|
'work_content',
|
|
'sort_order',
|
|
'options',
|
|
];
|
|
|
|
protected $casts = [
|
|
'man_days' => 'decimal:1',
|
|
'amount' => 'integer',
|
|
'options' => 'array',
|
|
];
|
|
|
|
public function attendance(): BelongsTo
|
|
{
|
|
return $this->belongsTo(PmisDailyAttendance::class, 'attendance_id');
|
|
}
|
|
}
|