diff --git a/database/migrations/2026_02_11_100000_create_corporate_card_prepayments_table.php b/database/migrations/2026_02_11_100000_create_corporate_card_prepayments_table.php new file mode 100644 index 0000000..810d01d --- /dev/null +++ b/database/migrations/2026_02_11_100000_create_corporate_card_prepayments_table.php @@ -0,0 +1,26 @@ +id(); + $table->unsignedBigInteger('tenant_id'); + $table->string('year_month', 7); // "2026-02" + $table->decimal('amount', 15, 0)->default(0); + $table->string('memo', 200)->nullable(); + $table->timestamps(); + $table->unique(['tenant_id', 'year_month']); + }); + } + + public function down(): void + { + Schema::dropIfExists('corporate_card_prepayments'); + } +};