Files
pds/app/Models/WindedSerialValidationError.php
dhanabalan 3ad1727dcd
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 27s
Added laser winded serial validation error policies and model file
2026-08-23 18:50:07 +05:30

46 lines
915 B
PHP

<?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);
}
}