Files
sam-manage/app/Models/Commons/File.php
김보곤 051707c1be fix: [database] codebridge 모델 cross-DB 관계 오류 수정
- samdb 공유 모델에 $connection = 'mysql' 명시적 선언
- codebridge 모델에서 eager-load 시 connection 상속 방지
- 영향 모델: User, Tenant, Department, Process, File(2), Approval, AiQuotationModule, InterviewProject
2026-03-09 23:35:13 +09:00

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',
];
}