- samdb 공유 모델에 $connection = 'mysql' 명시적 선언 - codebridge 모델에서 eager-load 시 connection 상속 방지 - 영향 모델: User, Tenant, Department, Process, File(2), Approval, AiQuotationModule, InterviewProject
26 lines
450 B
PHP
26 lines
450 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Traits\BelongsToTenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Process extends Model
|
|
{
|
|
use BelongsToTenant, SoftDeletes;
|
|
|
|
protected $connection = 'mysql';
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'process_code',
|
|
'process_name',
|
|
'is_active',
|
|
];
|
|
|
|
protected $casts = [
|
|
'is_active' => 'boolean',
|
|
];
|
|
}
|