- samdb 공유 모델에 $connection = 'mysql' 명시적 선언 - codebridge 모델에서 eager-load 시 connection 상속 방지 - 영향 모델: User, Tenant, Department, Process, File(2), Approval, AiQuotationModule, InterviewProject
24 lines
384 B
PHP
24 lines
384 B
PHP
<?php
|
|
|
|
namespace App\Models\Commons;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class File extends Model
|
|
{
|
|
protected $connection = 'mysql';
|
|
|
|
protected $table = 'files';
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'document_id',
|
|
'document_type',
|
|
'original_name',
|
|
'stored_name',
|
|
'path',
|
|
'mime_type',
|
|
'size',
|
|
];
|
|
}
|