feat:E-Sign 필드에 font_size 컬럼 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-13 07:20:39 +09:00
parent c7c9c3838d
commit ef23b9dda6
2 changed files with 32 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ class EsignSignField extends Model
'height',
'field_type',
'field_label',
'font_size',
'field_value',
'is_required',
'sort_order',
@@ -49,6 +50,7 @@ class EsignSignField extends Model
'position_y' => 'decimal:2',
'width' => 'decimal:2',
'height' => 'decimal:2',
'font_size' => 'integer',
'is_required' => 'boolean',
'sort_order' => 'integer',
];

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('esign_sign_fields', function (Blueprint $table) {
$table->unsignedSmallInteger('font_size')->nullable()->after('field_label')->comment('폰트 크기 (pt)');
});
Schema::table('esign_field_template_items', function (Blueprint $table) {
$table->unsignedSmallInteger('font_size')->nullable()->after('field_label')->comment('폰트 크기 (pt)');
});
}
public function down(): void
{
Schema::table('esign_sign_fields', function (Blueprint $table) {
$table->dropColumn('font_size');
});
Schema::table('esign_field_template_items', function (Blueprint $table) {
$table->dropColumn('font_size');
});
}
};