File: /var/www/api.vaspayment.com/database/migrations/2014_10_12_000000_create_users_table.php
<?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('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('lastname')->nullable();
$table->string('phone');
$table->string('referree_id')->nullable();
$table->enum('role', ['customer', 'agent', 'admin'])->default('customer');
$table->enum('status', [0, 1])->default(1)->comment('0 is Active, 1 is Inactive');
$table->string('email')->unique();
$table->string('password');
$table->string('nin')->nullable();
$table->string('middle_name')->nullable();
$table->string('dob')->nullable();
$table->string('device_id')->nullable();
$table->string('bvn')->nullable();
$table->rememberToken();
$table->timestamp('email_verified_at')->nullable();
$table->string('profile_photo_path', 2048)->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('users');
}
};