Files
pds/app/Models/AlertMailRule.php
dhanabalan 39d65afcfe
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 26s
Added machine_id column in alert mail model file
2026-08-18 12:44:25 +05:30

40 lines
898 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class AlertMailRule extends Model
{
use SoftDeletes;
protected $fillable = [
'module',
'plant',
'invoice_master_id',
'rule_name',
'email',
'cc_emails',
'schedule_type',
'machine_id',
'created_at',
'updated_at',
'created_by',
'updated_by',
];
public function invoiceMaster(): BelongsTo
{
return $this->belongsTo(InvoiceMaster::class);
//return $this->belongsTo(InvoiceMaster::class, 'invoice_master_id');
}
public function machine(): BelongsTo
{
return $this->belongsTo(Machine::class);
//return $this->belongsTo(InvoiceMaster::class, 'invoice_master_id');
}
}