CasperSecurity
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSalaryGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('salary_groups', function (Blueprint $table) {
$table->id();
$table->string('salary_group_name');
$table->decimal('salary_ctc_min_amount',10,2);
$table->decimal('salary_ctc_max_amount',10,2)->nullable();
$table->decimal('deduct_from_ctc_percentage',10,2)->nullable();
$table->string('earing_payroll_items');
$table->string('deduction_payroll_items');
$table->tinyInteger('status')->default('1');
$table->string('created_by')->nullable();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('salary_groups');
}
}