You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
1.1 KiB

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('f_name',100)->nullable();
$table->string('l_name',100)->nullable();
$table->string('phone')->nullable();
$table->string('email',100)->nullable();
$table->string('image',100)->nullable();
$table->boolean('is_phone_verified')->default(0);
$table->timestamp('email_verified_at')->nullable();
$table->string('password',100);
$table->string('email_verification_token')->nullable();
$table->string('cm_firebase_token')->nullable();
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}