From eb6bd5e03eb9b21d9f89c42bea89a6c9c694f1d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Tue, 24 Feb 2026 21:44:59 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20[business-card]=20=EB=AA=85=ED=95=A8?= =?UTF-8?q?=EC=8B=A0=EC=B2=AD=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=A7=88?= =?UTF-8?q?=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - business_card_requests 테이블 생성 - 신청자 정보 (name, phone, title, email, quantity, memo) - 처리 상태 관리 (status, processed_by, processed_at, process_memo) --- ...00_create_business_card_requests_table.php | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 database/migrations/2026_02_24_100000_create_business_card_requests_table.php diff --git a/database/migrations/2026_02_24_100000_create_business_card_requests_table.php b/database/migrations/2026_02_24_100000_create_business_card_requests_table.php new file mode 100644 index 0000000..1b2fff8 --- /dev/null +++ b/database/migrations/2026_02_24_100000_create_business_card_requests_table.php @@ -0,0 +1,42 @@ +id(); + $table->unsignedBigInteger('tenant_id')->comment('테넌트 ID'); + $table->unsignedBigInteger('user_id')->comment('신청자 ID'); + + // 명함 정보 + $table->string('name', 50)->comment('성함'); + $table->string('phone', 20)->comment('전화번호'); + $table->string('title', 50)->nullable()->comment('직함'); + $table->string('email', 100)->nullable()->comment('이메일'); + $table->unsignedInteger('quantity')->default(100)->comment('수량'); + $table->text('memo')->nullable()->comment('비고'); + + // 처리 상태 + $table->string('status', 20)->default('pending')->comment('상태: pending, processed'); + $table->unsignedBigInteger('processed_by')->nullable()->comment('처리자 ID'); + $table->timestamp('processed_at')->nullable()->comment('처리일시'); + $table->text('process_memo')->nullable()->comment('처리 메모'); + + $table->timestamps(); + + // 인덱스 + $table->index(['tenant_id', 'status']); + $table->index('user_id'); + }); + } + + public function down(): void + { + Schema::dropIfExists('business_card_requests'); + } +};