From 1bf8762f544aff395b0f765a094f4f88879e78e9 Mon Sep 17 00:00:00 2001 From: "go.unhi" Date: Thu, 23 Oct 2025 20:36:02 +0900 Subject: [PATCH] =?UTF-8?q?database/migrations/2025=5F01=5F17=5F000000=5Fc?= =?UTF-8?q?reate=5Fearnings=5Fsummary=5Ftable.php=20=E3=82=92=E5=89=8A?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7_000000_create_earnings_summary_table.php | 62 ------------------- 1 file changed, 62 deletions(-) delete mode 100644 database/migrations/2025_01_17_000000_create_earnings_summary_table.php diff --git a/database/migrations/2025_01_17_000000_create_earnings_summary_table.php b/database/migrations/2025_01_17_000000_create_earnings_summary_table.php deleted file mode 100644 index 70c1306..0000000 --- a/database/migrations/2025_01_17_000000_create_earnings_summary_table.php +++ /dev/null @@ -1,62 +0,0 @@ -id('earnings_summary_id')->comment('売上集計ID'); - $table->unsignedInteger('park_id')->comment('駐輪場ID'); - $table->string('summary_type', 255)->nullable()->comment('集計区分'); - $table->date('summary_start_date')->nullable()->comment('集計開始日'); - $table->date('summary_end_date')->nullable()->comment('集計終了日'); - $table->date('earnings_date')->nullable()->comment('売上日'); - $table->unsignedInteger('psection_id')->nullable()->comment('車種区分ID'); - $table->string('usertype_subject1', 255)->nullable()->comment('規格'); - $table->unsignedInteger('enable_months')->nullable()->comment('期間(月数)'); - $table->unsignedInteger('regular_new_count')->nullable()->comment('期間件数'); - $table->decimal('regular_new_amount', 10, 2)->nullable()->comment('期間金額'); - $table->unsignedInteger('regular_new_reduction_count')->nullable()->comment('期間成免件数'); - $table->decimal('regular_new_reduction_amount', 10, 2)->nullable()->comment('期間成免金額'); - $table->unsignedInteger('regular_update_count')->nullable()->comment('更新件数'); - $table->decimal('regular_update_amount', 10, 2)->nullable()->comment('更新金額'); - $table->unsignedInteger('regular_update_reduction_count')->nullable()->comment('更新成免件数'); - $table->decimal('regular_update_reduction_amount', 10, 2)->nullable()->comment('更新成免金額'); - $table->unsignedInteger('turnsum_count')->nullable()->comment('残金件数'); - $table->decimal('turnsum', 10, 2)->nullable()->comment('残金'); - $table->decimal('refunds', 10, 2)->nullable()->comment('解時返戻金'); - $table->decimal('other_income', 10, 2)->nullable()->comment('分別収入'); - $table->decimal('other_spending', 10, 2)->nullable()->comment('分別支出'); - $table->unsignedInteger('reissue_count')->nullable()->comment('発行件数'); - $table->decimal('reissue_amount', 10, 2)->nullable()->comment('発行金額'); - $table->text('summary_note')->nullable()->comment('計備考'); - $table->datetime('created_at')->nullable()->comment('登録日時'); - $table->datetime('updated_at')->nullable()->comment('更新日時'); - $table->unsignedInteger('operator_id')->nullable()->comment('新法・ページID'); - - // インデックス - $table->index(['park_id', 'earnings_date'], 'idx_park_earnings_date'); - $table->index(['psection_id'], 'idx_psection'); - $table->index(['earnings_date'], 'idx_earnings_date'); - }); - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('earnings_summary'); - } -};