Files
sam-manage/app/Models/ESign/EsignSignField.php
김보곤 5ffabed6b4 feat:E-Sign 템플릿 변수 자동채움 시스템 구현
- 시스템 변수 (서명자명, 이메일, 계약제목, 날짜 등) 자동 해석
- 커스텀 변수 정의/관리 (템플릿별 계약금액, 기간 등)
- 템플릿 필드 에디터: 변수 관리 + 필드-변수 바인딩 UI
- 계약 생성 폼: 템플릿 변수 입력 섹션 추가
- 계약 필드 에디터: 변수 연결 정보 표시
- PdfSignatureService: font_size 반영 렌더링

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 10:11:14 +09:00

51 lines
1.1 KiB
PHP

<?php
namespace App\Models\ESign;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class EsignSignField extends Model
{
protected $table = 'esign_sign_fields';
protected $fillable = [
'tenant_id',
'contract_id',
'signer_id',
'page_number',
'position_x',
'position_y',
'width',
'height',
'field_type',
'field_label',
'field_variable',
'font_size',
'field_value',
'is_required',
'sort_order',
];
protected $casts = [
'page_number' => 'integer',
'position_x' => 'decimal:4',
'position_y' => 'decimal:4',
'width' => 'decimal:4',
'height' => 'decimal:4',
'font_size' => 'integer',
'is_required' => 'boolean',
'sort_order' => 'integer',
];
public function contract(): BelongsTo
{
return $this->belongsTo(EsignContract::class, 'contract_id');
}
public function signer(): BelongsTo
{
return $this->belongsTo(EsignSigner::class, 'signer_id');
}
}