- 마스터 + 인원/장비/자재/공사량/작업사진 6테이블 마이그레이션 - 6개 탭: 작업내용, 인원, 장비, 자재, 공사량, 작업사진 - 작업내용: 금일/명일 텍스트 + 날씨/기온/강수/미세먼지 메타 - 전일누계 + 금일 + 총계 누적 패턴 (인원/장비/자재/공사량) - 작업사진: 파일 업로드 + 사진목록/사진정보 2단 레이아웃 - 상태별 버튼 제어 (작성중→저장/삭제, 검토중→읽기전용) - 양식보기: 3페이지 전체화면 뷰어 (작업일보/인원장비/자재) - 검토자 지정 모달, 캘린더 스트립, 번개 랜덤데이터
37 lines
770 B
PHP
37 lines
770 B
PHP
<?php
|
|
|
|
namespace App\Models\Juil;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class PmisWorkReportWorker extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'pmis_work_report_workers';
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'report_id',
|
|
'work_type',
|
|
'job_type',
|
|
'prev_cumulative',
|
|
'today_count',
|
|
'sort_order',
|
|
'options',
|
|
];
|
|
|
|
protected $casts = [
|
|
'prev_cumulative' => 'integer',
|
|
'today_count' => 'integer',
|
|
'options' => 'array',
|
|
];
|
|
|
|
public function report(): BelongsTo
|
|
{
|
|
return $this->belongsTo(PmisDailyWorkReport::class, 'report_id');
|
|
}
|
|
}
|