From 57879f767316785d0d17f11255fb15d6c0f7e73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 12 Feb 2026 18:02:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:E-Sign=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=ED=85=9C=ED=94=8C=EB=A6=BF=20=ED=85=8C=EC=9D=B4=EB=B8=94=20?= =?UTF-8?q?=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - esign_field_templates: 필드 배치 템플릿 저장 - esign_field_template_items: 템플릿 내 개별 필드 정보 Co-Authored-By: Claude Opus 4.6 --- ...000_create_esign_field_templates_table.php | 30 ++++++++++++++++ ...reate_esign_field_template_items_table.php | 34 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 database/migrations/2026_02_12_140000_create_esign_field_templates_table.php create mode 100644 database/migrations/2026_02_12_140100_create_esign_field_template_items_table.php diff --git a/database/migrations/2026_02_12_140000_create_esign_field_templates_table.php b/database/migrations/2026_02_12_140000_create_esign_field_templates_table.php new file mode 100644 index 0000000..a5d2a39 --- /dev/null +++ b/database/migrations/2026_02_12_140000_create_esign_field_templates_table.php @@ -0,0 +1,30 @@ +id(); + $table->foreignId('tenant_id')->constrained()->onDelete('cascade')->comment('테넌트 ID'); + $table->string('name', 100)->comment('템플릿 이름'); + $table->text('description')->nullable()->comment('템플릿 설명'); + $table->unsignedTinyInteger('signer_count')->default(2)->comment('서명자 수'); + $table->boolean('is_active')->default(true)->comment('활성 여부'); + $table->foreignId('created_by')->nullable()->constrained('users')->nullOnDelete()->comment('생성자 ID'); + $table->timestamps(); + + $table->index('tenant_id', 'idx_esign_field_templates_tenant'); + $table->index('is_active', 'idx_esign_field_templates_active'); + }); + } + + public function down(): void + { + Schema::dropIfExists('esign_field_templates'); + } +}; diff --git a/database/migrations/2026_02_12_140100_create_esign_field_template_items_table.php b/database/migrations/2026_02_12_140100_create_esign_field_template_items_table.php new file mode 100644 index 0000000..e2669bd --- /dev/null +++ b/database/migrations/2026_02_12_140100_create_esign_field_template_items_table.php @@ -0,0 +1,34 @@ +id(); + $table->foreignId('template_id')->constrained('esign_field_templates')->onDelete('cascade')->comment('템플릿 ID'); + $table->unsignedTinyInteger('signer_order')->comment('서명자 순서 (1, 2, ...)'); + $table->unsignedSmallInteger('page_number')->comment('페이지 번호'); + $table->decimal('position_x', 8, 2)->comment('X 좌표 (%)'); + $table->decimal('position_y', 8, 2)->comment('Y 좌표 (%)'); + $table->decimal('width', 8, 2)->comment('너비 (%)'); + $table->decimal('height', 8, 2)->comment('높이 (%)'); + $table->enum('field_type', ['signature', 'stamp', 'text', 'date', 'checkbox'])->default('signature')->comment('필드 유형'); + $table->string('field_label', 100)->nullable()->comment('필드 라벨'); + $table->boolean('is_required')->default(true)->comment('필수 여부'); + $table->unsignedSmallInteger('sort_order')->default(0)->comment('정렬 순서'); + $table->timestamps(); + + $table->index('template_id', 'idx_esign_field_template_items_template'); + }); + } + + public function down(): void + { + Schema::dropIfExists('esign_field_template_items'); + } +}; From a13e694174872f30276d7fa6dacc988353c96a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Thu, 12 Feb 2026 18:54:58 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:E-Sign=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=ED=85=9C=ED=94=8C=EB=A6=BF=20category=20=EC=BB=AC=EB=9F=BC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- ...ategory_to_esign_field_templates_table.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 database/migrations/2026_02_12_200000_add_category_to_esign_field_templates_table.php diff --git a/database/migrations/2026_02_12_200000_add_category_to_esign_field_templates_table.php b/database/migrations/2026_02_12_200000_add_category_to_esign_field_templates_table.php new file mode 100644 index 0000000..2b28fe5 --- /dev/null +++ b/database/migrations/2026_02_12_200000_add_category_to_esign_field_templates_table.php @@ -0,0 +1,24 @@ +string('category', 50)->nullable()->after('description')->comment('템플릿 카테고리'); + $table->index('category', 'idx_esign_field_templates_category'); + }); + } + + public function down(): void + { + Schema::table('esign_field_templates', function (Blueprint $table) { + $table->dropIndex('idx_esign_field_templates_category'); + $table->dropColumn('category'); + }); + } +};