2015-04-30 14:55:34 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
2019-09-10 17:26:00 +02:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
2015-04-30 14:55:34 -05:00
|
|
|
|
2021-05-07 12:54:25 +02:00
|
|
|
return new class extends Migration
|
|
|
|
|
{
|
2015-04-30 14:55:34 -05:00
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function up()
|
|
|
|
|
{
|
|
|
|
|
Schema::create('users', function (Blueprint $table) {
|
2019-11-01 13:53:14 +01:00
|
|
|
$table->id();
|
2015-04-30 14:55:34 -05:00
|
|
|
$table->string('name');
|
|
|
|
|
$table->string('email')->unique();
|
2018-06-21 15:32:22 -05:00
|
|
|
$table->timestamp('email_verified_at')->nullable();
|
2016-02-23 20:07:18 -06:00
|
|
|
$table->string('password');
|
2015-04-30 14:55:34 -05:00
|
|
|
$table->rememberToken();
|
|
|
|
|
$table->timestamps();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function down()
|
|
|
|
|
{
|
2016-10-16 14:34:56 -02:00
|
|
|
Schema::dropIfExists('users');
|
2015-04-30 14:55:34 -05:00
|
|
|
}
|
2021-04-15 13:53:35 +02:00
|
|
|
};
|