photo/database/migrations/2014_10_12_000000_create_users_table.php

37 lines
813 B
PHP
Raw Normal View History

2016-06-20 13:35:59 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
2019-11-09 02:52:04 +00:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2016-06-20 13:35:59 +00:00
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
2019-11-09 02:52:04 +00:00
$table->bigIncrements('id');
2016-06-20 13:35:59 +00:00
$table->string('name');
$table->string('email')->unique();
2019-11-09 02:52:04 +00:00
$table->timestamp('email_verified_at')->nullable();
2016-06-20 13:35:59 +00:00
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2019-11-09 02:52:04 +00:00
Schema::dropIfExists('users');
2016-06-20 13:35:59 +00:00
}
}