From 1ae9a29c623bd6e2cbd61102828aa20fa9d5d631 Mon Sep 17 00:00:00 2001 From: pro Date: Fri, 30 Jan 2026 19:12:00 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EB=B2=95=EC=9D=B8=EC=B9=B4=EB=93=9C=20?= =?UTF-8?q?=ED=85=8C=EC=9D=B4=EB=B8=94=20=EB=A7=88=EC=9D=B4=EA=B7=B8?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- ...30_180000_create_corporate_cards_table.php | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 database/migrations/2026_01_30_180000_create_corporate_cards_table.php diff --git a/database/migrations/2026_01_30_180000_create_corporate_cards_table.php b/database/migrations/2026_01_30_180000_create_corporate_cards_table.php new file mode 100644 index 0000000..32be027 --- /dev/null +++ b/database/migrations/2026_01_30_180000_create_corporate_cards_table.php @@ -0,0 +1,45 @@ +id(); + $table->unsignedBigInteger('tenant_id'); + $table->string('card_name', 100)->comment('카드명'); + $table->string('card_company', 50)->comment('카드사'); + $table->string('card_number', 30)->comment('카드번호'); + $table->enum('card_type', ['credit', 'debit'])->default('credit')->comment('카드종류'); + $table->tinyInteger('payment_day')->default(15)->comment('결제일'); + $table->decimal('credit_limit', 15, 2)->default(0)->comment('한도'); + $table->decimal('current_usage', 15, 2)->default(0)->comment('현재 사용액'); + $table->string('card_holder_name', 100)->nullable()->comment('이용자명(명의자)'); + $table->string('actual_user', 100)->nullable()->comment('실사용자'); + $table->string('expiry_date', 10)->nullable()->comment('유효기간 YY/MM'); + $table->string('cvc', 10)->nullable()->comment('CVC'); + $table->enum('status', ['active', 'inactive'])->default('active')->comment('상태'); + $table->text('memo')->nullable()->comment('메모'); + $table->timestamps(); + $table->softDeletes(); + + $table->index('tenant_id'); + $table->index('status'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('corporate_cards'); + } +};