1
0
forked from poc/pds

Added configuration migration, model, resource with dependencies

This commit is contained in:
dhanabalan
2025-05-31 09:03:19 +05:30
parent 46eaa273c3
commit 2c90676f62
7 changed files with 288 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class Configuration extends Model
{
use SoftDeletes;
protected $fillable = [
'plant_id',
'line_id',
'c_type',
'c_group',
'c_name',
'c_value',
];
public function plant(): BelongsTo
{
return $this->belongsTo(Plant::class);
}
public function line(): BelongsTo
{
return $this->belongsTo(Line::class);
}
}