MINI Sh3ll
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up() {
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('role_id')->nullable();
$table->string('first_name')->nullable();
$table->string('middle_name')->nullable();
$table->string('last_name')->nullable();
$table->string('address')->nullable();
$table->string('city')->nullable();
$table->string('email')->unique()->nullable();
$table->timestamp('email_verified_at')->nullable();
$table->string('mobile', 10)->nullable();
$table->Integer('otp')->nullable();
$table->string('password')->nullable();
$table->tinyInteger('is_email_verified')->default(0)->nullable();
$table->tinyInteger('is_mobile_verified')->default(0)->nullable();
$table->tinyInteger('is_invited')->default(0)->nullable();
$table->tinyInteger('invited_by')->default(0)->nullable();
$table->tinyInteger('status')->default(1)->nullable();
$table->string('verify_token')->nullable();
$table->string('zendesk_id')->nullable();
$table->softDeletes();
$table->rememberToken();
$table->timestamps();
$table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down() {
Schema::dropIfExists('users');
}
}
OHA YOOOO