<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUsersTable extends Migration
{
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('first_name')->nullable();
            $table->string('last_name')->nullable();
            $table->string('email')->nullable();
            $table->string('phone')->nullable();
            $table->string('phone_code')->nullable();
            $table->datetime('email_verified_at')->nullable();
            $table->string('password')->nullable();
            $table->string('remember_token')->nullable();
            $table->tinyInteger('kyc_status')->nullable()->comment("0: Pending, 1: Under Review, 2: Approved, 3: Rejected");
            $table->string('address')->nullable();
            $table->tinyInteger('document_type')->nullable()->comment("1: Passport, 2: Driving Licence, 3: Any Government ID");
            $table->string('document_picture')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }
}

