Files
pds/app/Models/TestingLineVisualization.php
dhanabalan 5c0ed45f74
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Added migration, model, policy, resource, importer, exporter, controller (Get API) with validation and functionality for Testing Line Visualization
2026-11-03 11:19:07 +05:30

37 lines
724 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class TestingLineVisualization extends Model
{
use SoftDeletes;
protected $fillable = [
'plant_id',
'test_bed_group',
'line_no',
'pump_model',
'pump_type',
'motor_details',
'test_type',
'flow',
'head',
'run_time',
'live_status',
'observation_remarks',
'created_at',
'created_by',
'updated_at',
'updated_by',
];
public function plant(): BelongsTo
{
return $this->belongsTo(Plant::class);
}
}