Files
sam-api/app/Models/ProcessClassificationRule.php

37 lines
707 B
PHP
Raw Normal View History

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