From 4106f59cd1459798623dab544a605c85ccb1c683 Mon Sep 17 00:00:00 2001 From: pro Date: Tue, 27 Jan 2026 15:17:34 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EB=B0=94=EB=A1=9C=EB=B9=8C=20=EA=B3=BC?= =?UTF-8?q?=EA=B8=88=20=EC=A0=95=EC=B1=85=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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - barobill_pricing_policies 테이블 생성 - 서비스 유형별 과금 정책 저장 (무료 제공량, 추가 과금 단위/금액) Co-Authored-By: Claude Opus 4.5 --- ...create_barobill_pricing_policies_table.php | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 database/migrations/2026_01_27_160000_create_barobill_pricing_policies_table.php diff --git a/database/migrations/2026_01_27_160000_create_barobill_pricing_policies_table.php b/database/migrations/2026_01_27_160000_create_barobill_pricing_policies_table.php new file mode 100644 index 0000000..e744058 --- /dev/null +++ b/database/migrations/2026_01_27_160000_create_barobill_pricing_policies_table.php @@ -0,0 +1,46 @@ +id(); + $table->string('service_type', 50)->comment('서비스 유형: card, tax_invoice, bank_account'); + $table->string('name', 100)->comment('정책명'); + $table->string('description')->nullable()->comment('설명'); + + // 기본 무료 제공량 + $table->integer('free_quota')->default(0)->comment('무료 기본 제공량'); + $table->string('free_quota_unit', 20)->default('개')->comment('무료 제공 단위 (장, 건, 개 등)'); + + // 추가 과금 설정 + $table->integer('additional_unit')->default(1)->comment('추가 과금 단위 (1, 50 등)'); + $table->string('additional_unit_label', 20)->default('개')->comment('추가 단위 라벨'); + $table->integer('additional_price')->default(0)->comment('추가 과금 금액 (원)'); + + $table->boolean('is_active')->default(true)->comment('활성화 여부'); + $table->integer('sort_order')->default(0)->comment('정렬 순서'); + + $table->timestamps(); + + $table->unique('service_type'); + $table->index('is_active'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('barobill_pricing_policies'); + } +};