2018-11-15 10:45:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
|
|
class CreateUsersTable extends Migration
|
|
|
|
{
|
2021-05-03 12:12:26 +00:00
|
|
|
/**
|
|
|
|
* Run the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function up()
|
|
|
|
{
|
|
|
|
Schema::create('users', function (Blueprint $table) {
|
2022-10-23 02:46:46 +00:00
|
|
|
$table->id();
|
2021-05-03 12:12:26 +00:00
|
|
|
$table->string('name');
|
|
|
|
$table->string('email')->unique();
|
|
|
|
$table->timestamp('email_verified_at')->nullable();
|
|
|
|
$table->string('password');
|
|
|
|
$table->rememberToken();
|
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
2018-11-15 10:45:49 +00:00
|
|
|
|
2021-05-03 12:12:26 +00:00
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::dropIfExists('users');
|
|
|
|
}
|
2018-11-15 10:45:49 +00:00
|
|
|
}
|