37 lines
707 B
PHP
37 lines
707 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
class ProcessClassificationRule extends Model
|
||
|
|
{
|
||
|
|
use HasFactory;
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'process_id',
|
||
|
|
'registration_type',
|
||
|
|
'rule_type',
|
||
|
|
'matching_type',
|
||
|
|
'condition_value',
|
||
|
|
'priority',
|
||
|
|
'description',
|
||
|
|
'is_active',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'is_active' => 'boolean',
|
||
|
|
'priority' => 'integer',
|
||
|
|
];
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 공정
|
||
|
|
*/
|
||
|
|
public function process(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Process::class);
|
||
|
|
}
|
||
|
|
}
|