Added three column sin serial validation model file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
This commit is contained in:
@@ -10,7 +10,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|||||||
|
|
||||||
class SerialValidation extends Model
|
class SerialValidation extends Model
|
||||||
{
|
{
|
||||||
use Prunable;
|
// use Prunable;
|
||||||
use SoftDeletes;
|
use SoftDeletes;
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
@@ -30,6 +30,9 @@ class SerialValidation extends Model
|
|||||||
'batch_number',
|
'batch_number',
|
||||||
'quantity',
|
'quantity',
|
||||||
'operator_id',
|
'operator_id',
|
||||||
|
'created_by',
|
||||||
|
'updated_by',
|
||||||
|
'panel_box_code',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function plant(): BelongsTo
|
public function plant(): BelongsTo
|
||||||
@@ -47,8 +50,8 @@ class SerialValidation extends Model
|
|||||||
return $this->belongsTo(StickerMaster::class, 'sticker_master_id');
|
return $this->belongsTo(StickerMaster::class, 'sticker_master_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function prunable(): Builder
|
// public function prunable(): Builder
|
||||||
{
|
// {
|
||||||
return static::where('created_at', '<=', now()->subMonthsNoOverflow(6));
|
// return static::where('created_at', '<=', now()->subMonthsNoOverflow(6));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user