<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('expense_records', function (Blueprint $table) {
$table->id();
$table->integer('candidate_id');
$table->decimal('amount', 10, 2);
$table->string('description')->nullable();
$table->date('date');
$table->string('expense_type')->nullable();
$table->string('payment_method')->nullable();
$table->string('reference_number')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('expense_records');
}
};