Added laser winded serial validation error policies and model file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 27s

This commit is contained in:
dhanabalan
2026-08-23 18:50:07 +05:30
parent 74b48750e0
commit 3ad1727dcd
2 changed files with 150 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class WindedSerialValidationError extends Model
{
use SoftDeletes;
protected $fillable = [
'plant_id',
'item_id',
'machine_id',
'machine_name',
'aufnr',
'gernr',
'model_type',
'winded_status',
'winded_qr',
'winded_code',
'winded_serial_number',
'created_at',
'updated_at',
'created_by',
'updated_by',
];
public function plant(): BelongsTo
{
return $this->belongsTo(Plant::class);
}
public function item()
{
return $this->belongsTo(Item::class, 'item_id', 'id');
}
public function machine(): BelongsTo
{
return $this->belongsTo(Machine::class);
}
}