Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('corporate_card_prepayments', function (Blueprint $table) {
|
||||||
|
$table->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');
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user