File: /home/armgroup/libs/database/migrations/2023_07_05_090851_create_easy_pays_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEasyPaysTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('easy_pays', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->nullable()->constrained()->onUpdate('cascade')->onDelete('set null');
$table->string('name');
$table->string('mobile', 11);
$table->unsignedBigInteger('amount');
$table->string('description', 500);
$table->boolean('checked')->default(false);
$table->boolean('status')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('easy_pays');
}
}