diff --git a/database/migrations/2026_02_12_220000_add_file_to_esign_field_templates.php b/database/migrations/2026_02_12_220000_add_file_to_esign_field_templates.php new file mode 100644 index 0000000..fa386fa --- /dev/null +++ b/database/migrations/2026_02_12_220000_add_file_to_esign_field_templates.php @@ -0,0 +1,25 @@ +string('file_path')->nullable()->after('category')->comment('PDF 파일 경로'); + $table->string('file_name')->nullable()->after('file_path')->comment('원본 파일명'); + $table->string('file_hash', 64)->nullable()->after('file_name')->comment('SHA256'); + $table->unsignedBigInteger('file_size')->nullable()->after('file_hash')->comment('바이트'); + }); + } + + public function down(): void + { + Schema::table('esign_field_templates', function (Blueprint $table) { + $table->dropColumn(['file_path', 'file_name', 'file_hash', 'file_size']); + }); + } +};