- 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)
47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Models\ESign;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class EsignFieldTemplateItem extends Model
|
|
{
|
|
protected $connection = 'codebridge';
|
|
protected $table = 'esign_field_template_items';
|
|
|
|
protected $fillable = [
|
|
'template_id',
|
|
'signer_order',
|
|
'page_number',
|
|
'position_x',
|
|
'position_y',
|
|
'width',
|
|
'height',
|
|
'field_type',
|
|
'field_label',
|
|
'field_variable',
|
|
'font_size',
|
|
'text_align',
|
|
'is_required',
|
|
'sort_order',
|
|
];
|
|
|
|
protected $casts = [
|
|
'signer_order' => 'integer',
|
|
'page_number' => 'integer',
|
|
'position_x' => 'decimal:2',
|
|
'position_y' => 'decimal:2',
|
|
'width' => 'decimal:2',
|
|
'height' => 'decimal:2',
|
|
'font_size' => 'integer',
|
|
'is_required' => 'boolean',
|
|
'sort_order' => 'integer',
|
|
];
|
|
|
|
public function template(): BelongsTo
|
|
{
|
|
return $this->belongsTo(EsignFieldTemplate::class, 'template_id');
|
|
}
|
|
}
|