- config/database.php에 codebridge connection 추가 - 78개 MNG 전용 모델에 $connection = 'codebridge' 설정 - Admin (15): PM, 로드맵, API Explorer - Sales (16): 영업파트너, 수수료, 가망고객 - Finance (9): 법인카드, 자금관리, 홈택스 - Barobill (12): 은행/카드 동기화 관리 - Interview (1), ESign (6), Equipment (2) - AI (3), Audit (3), 기타 (11)
41 lines
836 B
PHP
41 lines
836 B
PHP
<?php
|
|
|
|
namespace App\Models\ESign;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class EsignAuditLog extends Model
|
|
{
|
|
protected $connection = 'codebridge';
|
|
protected $table = 'esign_audit_logs';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'tenant_id',
|
|
'contract_id',
|
|
'signer_id',
|
|
'action',
|
|
'ip_address',
|
|
'user_agent',
|
|
'metadata',
|
|
'created_at',
|
|
];
|
|
|
|
protected $casts = [
|
|
'metadata' => 'array',
|
|
'created_at' => 'datetime',
|
|
];
|
|
|
|
public function contract(): BelongsTo
|
|
{
|
|
return $this->belongsTo(EsignContract::class, 'contract_id');
|
|
}
|
|
|
|
public function signer(): BelongsTo
|
|
{
|
|
return $this->belongsTo(EsignSigner::class, 'signer_id');
|
|
}
|
|
}
|