Files
sam-manage/app/Models/ESign/EsignSignField.php
김보곤 4ff7bab2bb fix:EsignSignField 생성 시 tenant_id 누락 수정
configureFields()에서 서명 필드 생성 시 tenant_id 추가,
모델 $fillable에도 tenant_id 추가.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 16:04:56 +09:00

48 lines
1.0 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_value',
'is_required',
'sort_order',
];
protected $casts = [
'page_number' => 'integer',
'position_x' => 'decimal:4',
'position_y' => 'decimal:4',
'width' => 'decimal:4',
'height' => 'decimal:4',
'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');
}
}