Files
sam-manage/app/Models/Juil/PmisWorkReportWorker.php

37 lines
770 B
PHP
Raw Normal View History

<?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');
}
}