From 502e34d88e10c232b58f6642e7e39587c46dfeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Mon, 2 Feb 2026 19:56:09 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EC=88=98=EB=8B=B9=20=EC=A7=80=EA=B8=89=20?= =?UTF-8?q?=EC=B6=94=EC=A0=81=20=EC=BB=AC=EB=9F=BC=20=EC=B6=94=EA=B0=80=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 - 1차/2차 납입완료일, 수당지급일 컬럼 추가 - 매니저 수당 관련 컬럼 추가 (첫 구독료, 지급일) Co-Authored-By: Claude Opus 4.5 --- ...ing_columns_to_sales_commissions_table.php | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 database/migrations/2026_02_02_195500_add_payment_tracking_columns_to_sales_commissions_table.php diff --git a/database/migrations/2026_02_02_195500_add_payment_tracking_columns_to_sales_commissions_table.php b/database/migrations/2026_02_02_195500_add_payment_tracking_columns_to_sales_commissions_table.php new file mode 100644 index 0000000..ee10c9d --- /dev/null +++ b/database/migrations/2026_02_02_195500_add_payment_tracking_columns_to_sales_commissions_table.php @@ -0,0 +1,51 @@ +date('first_payment_at')->nullable()->after('payment_date') + ->comment('1차 납입완료일'); + $table->date('first_partner_paid_at')->nullable()->after('first_payment_at') + ->comment('1차 파트너 수당지급일'); + + // 영업파트너 수당 - 2차 + $table->date('second_payment_at')->nullable()->after('first_partner_paid_at') + ->comment('2차 납입완료일'); + $table->date('second_partner_paid_at')->nullable()->after('second_payment_at') + ->comment('2차 파트너 수당지급일'); + + // 매니저 수당 + $table->date('first_subscription_at')->nullable()->after('second_partner_paid_at') + ->comment('첫 구독료 입금일 (매니저 수당 기준)'); + $table->date('manager_paid_at')->nullable()->after('first_subscription_at') + ->comment('매니저 수당지급일'); + }); + } + + public function down(): void + { + Schema::table('sales_commissions', function (Blueprint $table) { + $table->dropColumn([ + 'first_payment_at', + 'first_partner_paid_at', + 'second_payment_at', + 'second_partner_paid_at', + 'first_subscription_at', + 'manager_paid_at', + ]); + }); + } +};