CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLeaveHistoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('leave_histories', function (Blueprint $table) {
$table->id();
$table->string('employee_id');
$table->string('month');
$table->string('year');
$table->decimal('leave_type',10,2);
$table->decimal('prev_hour',10,2);
$table->decimal('managed_hour',10,2);
$table->decimal('added_hour',10,2);
$table->decimal('outstanding_hours',10,2);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('leave_histories');
}
}