Added pump testing entry policies and model file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s

This commit is contained in:
dhanabalan
2026-08-24 10:24:55 +05:30
parent a59369111f
commit 2a0e512689
2 changed files with 148 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class PumpTestingEntry extends Model
{
use SoftDeletes;
protected $fillable = [
'plant_id',
'pump_testing_master_id',
'tested_date',
'tested_type',
'pump_serial_number',
'correction_head',
'sl_no',
'voltage',
'frequency',
'speed',
'head',
'flow_reading',
'current',
'watt',
'created_at',
'created_by',
'updated_at',
'updated_by',
];
public function plant(): BelongsTo
{
return $this->belongsTo(Plant::class);
}
public function pumpTestingMasters(): BelongsTo
{
return $this->belongsTo(PumpTestingMaster::class, 'pump_testing_master_id', 'id');
}
}