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

40 lines
854 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 PmisWorkReportVolume extends Model
{
use SoftDeletes;
protected $table = 'pmis_work_report_volumes';
protected $fillable = [
'tenant_id',
'report_id',
'work_type',
'sub_work_type',
'unit',
'design_qty',
'prev_cumulative',
'today_count',
'sort_order',
'options',
];
protected $casts = [
'design_qty' => 'decimal:2',
'prev_cumulative' => 'decimal:2',
'today_count' => 'decimal:2',
'options' => 'array',
];
public function report(): BelongsTo
{
return $this->belongsTo(PmisDailyWorkReport::class, 'report_id');
}
}