- API 사용 테이블 22개(23개 모델) 제외하고 55개 모델만 $connection = 'codebridge' 적용 - config/database.php에 codebridge connection 재추가 - 제외 대상: Barobill 12개, ESign 4개, Audit 2개, DevTools 1개, System 2개, HR 1개
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');
|
|
}
|
|
}
|