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

This commit is contained in:
dhanabalan
2026-09-05 10:25:50 +05:30
parent 1fe0d29fef
commit 107b3a983e
2 changed files with 152 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
// use Illuminate\Database\Eloquent\Prunable;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class ModelMaster extends Model
{
// use Prunable;
use SoftDeletes;
protected $fillable = [
'plant_id',
'machine_id',
'heading_name',
'heading_value',
'type_name',
'type_value',
'has_motor',
'has_m_part',
'has_m_count',
'has_pump',
'has_p_part',
'has_p_count',
'has_name_plate',
'has_np_part',
'has_np_count',
'created_at',
'updated_at',
'created_by',
'updated_by',
];
public function plant(): BelongsTo
{
return $this->belongsTo(Plant::class);
}
public function machine(): BelongsTo
{
return $this->belongsTo(Machine::class);
}
}