Files
sam-manage/app/Models/Interview/InterviewKnowledge.php
김보곤 b831979153 feat: [database] codebridge DB 분리 재적용 - 55개 MNG 전용 모델만 설정
- API 사용 테이블 22개(23개 모델) 제외하고 55개 모델만 $connection = 'codebridge' 적용
- config/database.php에 codebridge connection 재추가
- 제외 대상: Barobill 12개, ESign 4개, Audit 2개, DevTools 1개, System 2개, HR 1개
2026-03-09 20:02:04 +09:00

56 lines
1.2 KiB
PHP

<?php
namespace App\Models\Interview;
use App\Models\User;
use App\Traits\BelongsToTenant;
use App\Traits\ModelTrait;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class InterviewKnowledge extends Model
{
use BelongsToTenant, ModelTrait, SoftDeletes;
protected $connection = 'codebridge';
protected $table = 'interview_knowledge';
protected $fillable = [
'tenant_id',
'interview_project_id',
'domain',
'knowledge_type',
'title',
'content',
'source_type',
'source_id',
'confidence',
'is_verified',
'verified_by',
'verified_at',
'created_by',
];
protected $casts = [
'content' => 'array',
'confidence' => 'decimal:2',
'is_verified' => 'boolean',
'verified_at' => 'datetime',
];
public function project()
{
return $this->belongsTo(InterviewProject::class, 'interview_project_id');
}
public function verifier()
{
return $this->belongsTo(User::class, 'verified_by');
}
public function creator()
{
return $this->belongsTo(User::class, 'created_by');
}
}